/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #ff2e57;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* الهيدر */
.header {
    background: #f9faff;
    color: #181818;
    padding: 1.5rem 0 1.5rem 0;
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.header::before {
    display: none !important;
}

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

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.navbar.scrolled .logo {
    color: var(--primary-color);
}

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

.logo img {
    height: 50px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #181818;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.navbar.scrolled .nav-menu a {
    color: #181818;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar.scrolled .nav-menu a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease-out;
    color: #181818;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.2s both;
    color: #333;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: slideInLeft 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.cta-button::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.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.hero-image {
    animation: slideInRight 1s ease-out;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* الأقسام الرئيسية */
.section {
    padding: 5rem 0;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* شبكة المشاريع */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    height: 300px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 3s ease-in-out;
    transform-origin: top center;
    transform: translateY(0);
}

.project-card:hover .project-image img {
    transform: translateY(60%);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.project-card.featured .project-badge {
    opacity: 1;
    transform: translateY(0);
}

.project-content {
    padding: 0.7rem 1.2rem 1.2rem 1.2rem;
}

.project-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-title {
    display: none;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
}

/* فلاتر الفئات */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-light);
    color: #181818;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1.1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* زر واتساب ثابت */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25d366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* البحث */
.search-container {
    max-width: 500px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--bg-light);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
}

/* الفوتر */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    text-align: center;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    color: var(--text-light);
}

/* التجاوب */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* تأثيرات إضافية */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    min-height: 36px;
}

.project-button::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.5s;
}

.project-button:hover::before {
    left: 100%;
}

.project-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.project-button i {
    transition: transform 0.3s ease;
}

.project-button:hover i {
    transform: translateX(-3px);
}




.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: top center;
    transform: translateY(0);
}

.project-card:hover .project-image img {
    transform: translateY(60%);
}




/* قسم الفلاش ديل */
.flash-deal-section {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.flash-deal-section .section-title {
    color: var(--white);
}

.flash-deal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.deal-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.deal-details {
    text-align: center;
}

.deal-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.deal-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.deal-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.deal-price .price-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

.deal-price .currency {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

.deal-button {
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.deal-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

@media (min-width: 768px) {
    .flash-deal-content {
        flex-direction: row;
        text-align: left;
    }

    .deal-details {
        text-align: left;
    }
}



/* تحسينات إضافية للمشاريع */
.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(30, 64, 175, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.project-category::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #f97316);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* تحسين الأنيميشن للمشاريع عند التحميل */
.project-card.fade-in {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* تأثير التحميل المتدرج */
.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }
.project-card:nth-child(4) { transition-delay: 0.4s; }
.project-card:nth-child(5) { transition-delay: 0.5s; }
.project-card:nth-child(6) { transition-delay: 0.6s; }


/* تحسينات إضافية لقسم الفلاش ديل */
.flash-deal-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.flash-deal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="flash-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23flash-grid)"/></svg>');
    animation: float 15s ease-in-out infinite;
}

.flash-deal-section .section-title {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse-title 2s ease-in-out infinite;
}

@keyframes pulse-title {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.flash-deal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.deal-image {
    position: relative;
}

.deal-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.deal-image:hover img {
    transform: scale(1.05) rotate(2deg);
}

.deal-details {
    text-align: center;
    max-width: 600px;
}

.deal-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.deal-description {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.deal-price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: glow-price 2s ease-in-out infinite alternate;
}

@keyframes glow-price {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.5);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 30px rgba(245, 158, 11, 0.8);
    }
}

.deal-price .price-label {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-bottom: 0.5rem;
}

.deal-price .currency {
    font-size: 1.8rem;
    margin-left: 0.5rem;
}

.deal-button {
    background: linear-gradient(135deg, var(--accent-color), #f97316);
    color: var(--white);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    animation: pulse-button 3s ease-in-out infinite;
}

@keyframes pulse-button {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6);
    }
}

.deal-button::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.5s;
}

.deal-button:hover::before {
    left: 100%;
}

.deal-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.6);
}

@media (min-width: 768px) {
    .flash-deal-content {
        flex-direction: row;
        text-align: left;
        gap: 4rem;
    }

    .deal-details {
        text-align: left;
        flex: 1;
    }
    
    .deal-image {
        flex: 1;
    }
}


/* قسم الفلاش ديل الجديد */
.flash-deal-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.flash-deal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sparkles" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="5" cy="5" r="0.5" fill="rgba(255,255,255,0.2)"/><circle cx="15" cy="15" r="0.5" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23sparkles)"/></svg>');
    animation: sparkle 10s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-20px) translateY(-20px); }
}

.flash-deals-slider,
.flash-deal-single {
    position: relative;
    z-index: 2;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.flash-deal-slide {
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.flash-deal-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.deal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.deal-images {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.deal-image-item {
    position: absolute;
    width: 250px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.deal-image-item:nth-child(1) {
    transform: translateX(-30px) rotateY(-15deg) rotateZ(-5deg);
    z-index: 3;
}

.deal-image-item:nth-child(2) {
    transform: translateX(0) rotateY(0deg) rotateZ(0deg);
    z-index: 4;
    scale: 1.1;
}

.deal-image-item:nth-child(3) {
    transform: translateX(30px) rotateY(15deg) rotateZ(5deg);
    z-index: 3;
}

.deal-image-item:nth-child(n+4) {
    transform: translateX(calc(var(--index) * 20px)) rotateY(calc(var(--index) * 10deg)) rotateZ(calc(var(--index) * 3deg));
    z-index: calc(5 - var(--index));
    opacity: 0.8;
}

.deal-image-item:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10 !important;
}

.deal-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.deal-image-item:hover img {
    transform: scale(1.1);
}

.deal-details {
    text-align: center;
}

.deal-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.deal-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.deal-price {
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.price-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-left: 0.5rem;
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.deal-button {
    background: linear-gradient(45deg, var(--accent-color), #ff6b35);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.deal-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
    background: linear-gradient(45deg, #ff6b35, var(--accent-color));
}

/* أزرار التنقل */
.slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 5;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: all;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* مؤشرات السلايدر */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* تجاوب الشاشات الصغيرة */
@media (max-width: 768px) {
    .deal-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .deal-images {
        height: 300px;
    }
    
    .deal-image-item {
        width: 200px;
        height: 240px;
    }
    
    .deal-title {
        font-size: 2rem;
    }
    
    .deal-description {
        font-size: 1rem;
    }
    
    .slider-navigation {
        padding: 0 1rem;
    }
}

/* تأثيرات إضافية */
.deal-content {
    animation: dealFloat 6s ease-in-out infinite;
}

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

.deal-image-item {
    animation: imageFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--index) * 0.5s);
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0px) rotateY(var(--rotation, 0deg)); }
    50% { transform: translateY(-5px) rotateY(var(--rotation, 0deg)); }
}

.project-card--big img {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 2.5s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateY(0);
    display: block;
}
@media (max-width: 600px) {
    .project-image {
        height: 220px;
    }
}

.hero-image, .header-slider {
    background: none !important;
}

.hero-image img,
.header-slider img {
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-height: 420px !important;
}

.project-title-visible {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 0.1rem;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-content {
    padding-top: 0.2rem;
}


.project-content.no-title .project-button {
    margin-top: 2.2rem;
}


/* تصميم احترافي جديد لقسم الفلاش ديل */
.flash-deal-section {
    background: linear-gradient(120deg, #232526 0%, #414345 100%);
    color: #fff;
    padding: 5rem 0 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}
.flash-deal-section .section-title {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    animation: pulse-title 2s infinite;
}
.flash-deals-slider, .flash-deal-single {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}
.slider-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
}
.flash-deal-slide, .flash-deal-single {
    background: rgba(255,255,255,0.07);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    padding: 2.5rem 2rem;
    margin: 0 auto;
    max-width: 900px;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
}
.flash-deal-slide.active {
    box-shadow: 0 16px 40px 0 rgba(31, 38, 135, 0.18);
    transform: scale(1.03);
}
.deal-images {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    min-width: 0;
}
.deal-image-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    overflow: hidden;
    width: 180px;
    height: 220px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    z-index: 1;
}
.deal-image-item:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 2;
}
.deal-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: filter 0.3s, transform 0.3s;
}
.deal-image-item:hover img {
    filter: brightness(1.08) contrast(1.1);
    transform: scale(1.04);
}
.deal-details {
    flex: 1;
    text-align: right;
    padding-right: 1.5rem;
}
.deal-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
.deal-description {
    font-size: 1.15rem;
    color: #e0e0e0;
    margin-bottom: 1.7rem;
    line-height: 1.7;
}
.deal-price {
    font-size: 2rem;
    font-weight: bold;
    color: #ffb300;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.13);
    border-radius: 40px;
    display: inline-block;
    padding: 0.7rem 2.2rem;
    box-shadow: 0 2px 8px rgba(255,179,0,0.08);
}
.price-label {
    font-size: 1.1rem;
    color: #fff;
    opacity: 0.8;
    margin-left: 0.5rem;
}
.deal-button {
    background: linear-gradient(90deg, #ffb300 0%, #ff6f00 100%);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(255,179,0,0.13);
    border: none;
    outline: none;
    margin-top: 1rem;
    display: inline-block;
}
.deal-button:hover {
    background: linear-gradient(90deg, #ff6f00 0%, #ffb300 100%);
    color: #fff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 32px rgba(255,179,0,0.18);
}
.slider-navigation {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.slider-btn {
    background: rgba(255,255,255,0.18);
    border: none;
    color: #fff;
    font-size: 2rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.slider-btn:hover {
    background: #ffb300;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,179,0,0.13);
}
.slider-indicators {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.7rem;
}
.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.4;
    border: 2px solid #ffb300;
    transition: opacity 0.2s, background 0.2s;
    cursor: pointer;
}
.indicator.active, .indicator:hover {
    opacity: 1;
    background: #ffb300;
}
@media (max-width: 900px) {
    .flash-deal-slide, .flash-deal-single {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0.5rem;
    }
    .deal-details {
        padding-right: 0;
        text-align: center;
    }
    .deal-images {
        flex-direction: row;
        gap: 1rem;
    }
    .deal-image-item {
        width: 120px;
        height: 140px;
    }
}
@media (max-width: 600px) {
    .flash-deal-section {
        padding: 2rem 0 1.5rem 0;
    }
    .flash-deal-slide, .flash-deal-single {
        padding: 1rem 0.2rem;
        max-width: 100%;
    }
    .deal-title {
        font-size: 1.3rem;
    }
    .deal-description {
        font-size: 1rem;
    }
    .deal-image-item {
        width: 80px;
        height: 90px;
    }
    .deal-price {
        font-size: 1.1rem;
        padding: 0.4rem 1.2rem;
    }
    .deal-button {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
}


/* Overlay للعين والخط الشفاف على صورة كارد المشروع */
.project-image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}
.eye-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.85);
    font-size: 1.4rem;
    background: rgba(0,0,0,0.18);
    border-radius: 50%;
    padding: 0.3rem 0.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    transition: background 0.3s, color 0.3s, transform 0.3s;
    pointer-events: none;
}
.project-card:hover .eye-icon {
    background: rgba(0,0,0,0.32);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.08);
}
.image-bottom-gradient {
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.32) 80%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 15px 15px;
    pointer-events: none;
}
.project-image {
    height: 100%;
    min-height: 220px;
    max-height: 350px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px 15px 0 0;
}

/* عنوان المشروع فوق الصورة بشكل أنيق */
.project-title-above-image {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    left: 0.7rem;
    z-index: 3;
    background: rgba(0,0,0,0.18);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.3rem 0.8rem;
    text-align: right;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* إخفاء العنوان القديم أسفل الصورة */
.project-title-visible {
    display: none !important;
}

/* عنوان المشروع أسفل الصورة داخل الكارد - تحديث */
.project-title-below-image {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.1rem;
    z-index: 4;
    background: none;
    color: #fff;
    font-size: 0.90rem;
    font-weight: 600;
    border-radius: 0;
    padding: 0.1rem 0.5rem;
    text-align: center;
    box-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    margin: 0 auto;
    width: 80%;
}

/* إزالة أي مسافة بيضاء أسفل صورة الكارد */
.project-card {
    padding-bottom: 0 !important;
}
.project-image {
    margin-bottom: 0 !important;
}

/* تعطيل أي transition/transform قديم على صورة المشروع */
.project-image img,
.project-card:hover .project-image img {
    transition: none !important;
    transform: none !important;
}

/* الأنيميشن الصحيح في نهاية الملف - مع !important لكل الخصائص */
.project-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 15px 15px 0 0 !important;
    transition: transform 6s cubic-bezier(0.22, 1, 0.36, 1) !important;
    transform-origin: top center !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    background: none !important;
}
.project-card:hover .project-image img {
    transform: translateY(calc(-100% + 100% * (var(--project-image-visible, 1)))) !important;
}

/* إذا أردت أن تظهر كل الصورة مهما كان طولها، استخدم object-fit: contain للصورة الطويلة */
.project-image img.long-image {
    object-fit: contain;
}


/* توحيد حجم كروت المشاريع في جميع الأقسام */
.project-card {
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
}
.project-image {
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
}

.project-card:not(:has(.project-title-below-image)) .image-bottom-gradient {
    display: none !important;
}


/* ظل overlay فوق صورة المشروع */
.project-image {
    position: relative;
}
.project-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(69, 69, 69, 0);
    border-radius: 15px 15px 0 0;
    pointer-events: none;
    z-index: 2;
}


/* ===== استعادة أنيميشن صورة المشروع مع overlay الظل ===== */
.project-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 15px 15px 0 0;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 15px 15px 0 0;
    transition: transform 3s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: top center;
    transform: translateY(0);
}
.project-card:hover .project-image img {
    transform: translateY(-60%);
}
.project-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(69, 69, 69, 0.11);
    border-radius: 15px 15px 0 0;
    pointer-events: none;
    z-index: 2;
}

