* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* تأثيرات التمرير والانيميشن */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* وقت تأخير مختلف لكل عنصر */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* الهيدر والتنقل */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ecf0f1;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.logo img {
    margin-left: 10px;
    width: 30px;
    height: 30px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a:hover::after {
    width: 100%;
}

/* قسم الإعلانات */
.ad-banner {
    background-color: #3498db;
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.ad-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.ad-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    pointer-events: none;
    transition: transform 0.6s ease;
}

.ad-banner:hover::before {
    transform: rotate(45deg) translate(0%, 100%);
}

.ad-banner h3 {
    margin-bottom: 0.5rem;
}

/* عرض المنتجات */
.products-heading {
    text-align: center;
    margin: 2rem 0;
    color: #2c3e50;
    position: relative;
}

.products-heading::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #3498db;
    margin: 10px auto;
    transition: width 0.3s ease;
}

.products-heading:hover::after {
    width: 100px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.product-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: right 0.3s ease;
}

.btn:hover::before {
    right: 0;
}

.btn-order {
    background-color: #2ecc71;
    color: white;
}

.btn-details {
    background-color: #f1f1f1;
    color: #333;
}

.btn-order:hover {
    background-color: #27ae60;
}

.btn-details:hover {
    background-color: #e5e5e5;
}

/* قسم Easy Download */
.easy-download {
    background-color: #9b59b6;
    color: white;
    padding: 3rem 0;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.easy-download::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, transparent 33.33%, #9b59b6 33.33%, #9b59b6 66.66%, transparent 66.66%);
    background-size: 20px 20px;
}

.easy-download::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, transparent 33.33%, #9b59b6 33.33%, #9b59b6 66.66%, transparent 66.66%);
    background-size: 20px 20px;
}

.download-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.download-text {
    flex: 1;
    min-width: 300px;
    padding: 0 1rem;
}

.download-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.download-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.download-badge {
    display: flex;
    align-items: center;
    background-color: white;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.download-badge i {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

.download-badge span {
    display: flex;
    flex-direction: column;
}

.download-badge .small-text {
    font-size: 0.7rem;
    opacity: 0.8;
}

.download-badge .big-text {
    font-weight: bold;
}

.download-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.download-image .phone {
    max-width: 100%;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    transition: transform 0.5s ease;
}

.download-image:hover .phone {
    transform: rotate(-5deg);
}

.download-image .circles {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    z-index: 0;
    animation: pulse 5s infinite alternate;
}

.download-image .circles::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50px;
    left: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: pulse 5s 1s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

/* الفوتر */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #3498db, #2ecc71, #e74c3c, #9b59b6);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 100%;
}

.footer-section p, .footer-section a {
    color: #ecf0f1;
    margin-bottom: 0.5rem;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-origin: right;
}

.footer-section a:hover {
    transform: translateX(-5px);
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .download-content {
        flex-direction: column;
        text-align: center;
    }
    
    .download-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-buttons {
        flex-direction: column;
    }
}