/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

:root {
    --primary-red: #b91c1c; /* مستوحى من لون الشعار */
    --dark-red: #7f1d1d;
    --accent-yellow: #fbbf24;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
}

body {
    background-color: #f9fafb;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* قسم الهيرو */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    overflow: hidden;
    padding: 20px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.logo-container {
    margin-bottom: 20px;
}

.app-logo {
    width: 150px;
    height: 150px;
    border-radius: 20%; /* حواف دائرية للشعار */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 4px solid var(--white);
    background-color: var(--primary-red);
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--accent-yellow);
    font-size: 2rem;
    display: block;
    font-weight: 700;
}

.hero .description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #ffe4e6;
}

/* زر التحميل */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-yellow);
    color: var(--dark-red);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.4);
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    background-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(251, 191, 36, 0.6);
}

.download-btn i {
    font-size: 1.3rem;
    animation: bounce 2s infinite;
}

.sub-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #fecdd3;
}

/* أشكال خلفية متحركة */
.bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--white);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-yellow);
    bottom: 10%;
    left: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--white);
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
}

/* قسم الميزات */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 50px;
    font-weight: 900;
}

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

.feature-card {
    background: #f9fafb;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-red);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(185, 28, 28, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* التذييل */
footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

/* الأنيميشن */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* أنيميشن ظهور العناصر */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* أنيميشن التمرير (Scroll Reveal) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* التجاوب مع الهواتف */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero h1 span { font-size: 1.5rem; }
    .hero .description { font-size: 1rem; }
    .app-logo { width: 120px; height: 120px; }
    .download-btn { padding: 12px 30px; font-size: 1rem; }
}