/* ---------- الموقع الاحترافي الجديد ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #2d2d5a 100%);
    color: #ffffff;
    text-align: center;
    line-height: 1.6;
    min-height: 100vh;
}

/* خلفية متحركة */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* الهيرو */
.hero-center {
    padding: 80px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero-center::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(0, 255, 255, 0.05), transparent 30%);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.site-title {
    font-size: clamp(40px, 8vw, 120px);
    font-weight: 900;
    background: linear-gradient(45deg, #00ffff, #ff0080, #ffd700, #00ff00);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
    position: relative;
    z-index: 2;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.site-subtitle {
    font-size: clamp(20px, 4vw, 45px);
    color: #b8b8d4;
    margin: 20px 0 50px;
    font-weight: 300;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* شريط الروابط */
.full-width-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    gap: 20px;
    flex-wrap: wrap;
}

.full-width-menu .menu-item {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(16px, 2.5vw, 24px);
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid transparent;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 128, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.full-width-menu .menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.full-width-menu .menu-item:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #00ffff;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    color: #00ffff;
}

.full-width-menu .menu-item:hover::before {
    left: 100%;
}

/* الأعمال */
.works-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin: 80px auto;
    padding: 0 20px;
    max-width: 1200px;
}

.works-box {
    background: rgba(26, 26, 62, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.works-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ff0080, #ffd700);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.works-box:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2);
}

.works-box:hover::before {
    transform: scaleX(1);
}

.works-box h2 {
    font-size: clamp(22px, 3vw, 32px);
    background: linear-gradient(45deg, #00ffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Slider محسن */
.slider {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.8) contrast(1.1);
}

.slider img.active {
    opacity: 1;
    transform: scale(1.05);
}

.slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 128, 0.1));
    pointer-events: none;
}

/* زر واتساب محسن */
.contact-cta {
    margin: 80px 0;
}

.whatsapp-btn {
    display: inline-block;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(18px, 3vw, 26px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.whatsapp-btn:hover::before {
    left: 100%;
}

/* تواصل معنا محسن */
.contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 5vw, 50px);
    margin-top: clamp(60px, 12vw, 140px);
    flex-wrap: wrap;
    padding: 0 20px;
}

.contact-icons a {
    width: clamp(20px, 10vw, 70px);
    height: clamp(20px, 10vw, 70px);
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 128, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(20px);
}

.contact-icons a::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ffff, #ff0080, #ffd700, #00ff00);
    background-size: 400% 400%;
    animation: gradientRotate 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

@keyframes gradientRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.contact-icons a img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: brightness(1.2);
}

.contact-icons a:hover {
    transform: translateY(-8px) rotate(5deg) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.contact-icons a:hover::before {
    opacity: 1;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 1024px) {
    .hero-center {
        padding: 60px 15px 50px;
    }
    
    .hero-showcase {
        max-width: 95%;
        padding: 25px;
    }
    
    .hero-image {
        height: 280px;
    }
    
    .works-container {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 60px auto;
    }
    
    .works-box {
        padding: 25px;
    }
    
    .works-box:first-child {
        order: 0;
    }
    
    .works-box:last-child {
        order: 1;
    }
}

@media (max-width: 768px) {
    .full-width-menu {
        gap: 10px;
        padding: 15px 10px;
    }
    
    .full-width-menu .menu-item {
        padding: 10px 20px;
        font-size: clamp(14px, 3vw, 18px);
    }
    
    .hero-showcase {
        padding: 20px;
        margin: 25px auto;
    }
    
    .hero-image {
        height: 220px;
    }
    
    .slider {
        height: 250px;
    }
    
    .works-container {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .contact-icons {
        gap: 20px;
    }
    
    .news-ticker::before {
        font-size: 12px;
        padding: 4px 12px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .contact-icons {
        gap: 15px;
    }
    
    .hero-showcase {
        padding: 15px;
        margin: 20px 10px;
    }
    
    .hero-image {
        height: 180px;
    }
    
    .slider {
        height: 200px;
    }
    
    .contact-icons a {
        width: clamp(55px, 18vw, 80px);
        height: clamp(55px, 18vw, 80px);
    }
    
    body::before {
        animation: none; /* توفير البطارية على الموبايل */
    }
    
    .news-content {
        font-size: 14px;
    }
}