/* CSS Variables matching Flutter Theme */
:root {
    --primary-color: #0077FF;
    --primary-dark: #005ecb;
    --secondary-color: #F57C00;
    --secondary-light: #FFB74D;
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --success: #10B981;
    --border-radius: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 119, 255, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Header */
.header {
    background-color: var(--bg-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.logo-text .highlight {
    color: var(--secondary-color);
}

.navbar a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.navbar a:hover, .navbar a.active {
    color: var(--primary-color);
}

.partner-link {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-white);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-text p.lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--text-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    min-width: 160px;
}

.store-btn:hover {
    background-color: #000;
    transform: translateY(-3px);
}

.store-btn i {
    font-size: 28px;
}

.store-btn div {
    display: flex;
    flex-direction: column;
}

.store-btn small {
    font-size: 10px;
    opacity: 0.8;
}

.store-btn span {
    font-size: 16px;
    font-weight: 700;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    z-index: 2;
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.phone-mockup .screen {
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blobs Background Animation */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.4;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: moveBlob 8s infinite alternate;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background-color: var(--secondary-color);
    top: 20%;
    right: 20%;
    animation: moveBlob 10s infinite alternate-reverse;
}

@keyframes moveBlob {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-30%, -60%) scale(1.1); }
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.icon-bg-1 { background-color: rgba(0, 119, 255, 0.1); color: var(--primary-color); }
.icon-bg-2 { background-color: rgba(245, 124, 0, 0.1); color: var(--secondary-color); }
.icon-bg-3 { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Categories */
.categories-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.category-item {
    text-align: center;
}

.cat-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    transition: 0.3s;
}

.category-item:hover .cat-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

.category-item h4 {
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header .navbar {
        display: none; /* Add JS toggle later */
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .download-buttons {
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }

    .footer-content {
        text-align: center;
    }

    .social-links, .footer-contact p {
        justify-content: center;
    }
}
