/* ------------------------------ */
/* 🔹 Reset & Base Styles */
/* ------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #0d1523;
    color: #f4f6fa;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}


#horizontal-gallery {
    padding: 40px;
    background: linear-gradient(160deg, #0b1320, #101a2c 85%);
}

.gallery-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.gallery-wrapper::-webkit-scrollbar {
    height: 8px;
}

.gallery-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.gallery-wrapper::-webkit-scrollbar-thumb {
    background: #f58220;
    border-radius: 10px;
}

.template-card.horizontal {
    flex: 0 0 auto;
    width: 370px;
    height: 160px;
    background: #111a29;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(13, 21, 35, 0.7);
    transition: transform 0.5s, box-shadow 0.5s;
    -webkit-transition: transform 0.5s, box-shadow 0.5s;
    -moz-transition: transform 0.5s, box-shadow 0.5s;
    -ms-transition: transform 0.5s, box-shadow 0.5s;
    -o-transition: transform 0.5s, box-shadow 0.5s;
}




.template-card.horizontal:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 42px rgba(245, 130, 32, 0.35);
}

.template-card.horizontal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000; /* أو نفس لون الخلفية */
    display: block;
    transition: transform 0.5s;
}


.template-card.horizontal:hover img {
    transform: scale(1.05) rotate(1deg);
}



.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.modal img.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.3s ease;
}

/* زر الإغلاق */
.modal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f58220;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}

/* أسهم التنقل داخل المودال */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 40px;
    padding: 10px 20px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

.modal-arrow:hover {
    background: #f58220;
}

.modal-arrow.left {
    left: 20px;
}

.modal-arrow.right {
    right: 20px;
}

/***الاسهم***/
#horizontal-gallery {
    position: relative;
    padding: 40px;
    background: linear-gradient(160deg, #0b1320, #101a2c 85%);
    overflow: hidden;
}

.gallery-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    /* منع التمرير اليدوي */
    scroll-behavior: smooth;
}

/* الأسهم */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s;
}

.gallery-arrow:hover {
    background-color: rgba(245, 130, 32, 0.8);
}

.gallery-arrow.left {
    left: 10px;
}

.gallery-arrow.right {
    right: 10px;
}


@media (max-width: 600px) {
    .template-card.horizontal {
        width: 300px;
        height: 200px;
    }
}

@media (max-width: 600px) {
  /* تصغير صور modal */
  .modal-images img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
  }

  /* تعديل الحاوية لتوسيط الصور */
  .modal-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    overflow-x: hidden;
    padding: 20px;
    flex-direction: column;
  }

  /* تصغير الأسهم */
  .gallery-arrow {
    font-size: 30px;
    padding: 6px;
  }
}



/**HERO CTA**/

.cta-section {
    background: linear-gradient(135deg, #141622, #1f2233);
    /* تدرج داكن أنيق */
    color: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    /* إطار خفيف ذهبي */
}

.cta-container h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.5;
    color: #ffbe0c;
    /* ذهبي ناعم */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.cta-container p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #cccccc;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background-color: #f0c040;
    color: #111;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    background-color: #d6a900;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


.navbar {
    background: rgba(13, 21, 35, 0.95);
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.name-hero12 {
    color: #f58220;
}

.name-hero2 {
    color: #fff;
}

.navbar-nav {
    list-style: none;
    display: flex;
}

.navbar-nav .nav-link {
    color: #f4f6fa;
    margin-left: 20px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #f58220;
}



/* زر Back بنفس ستايل زر اللغة */
#backBtn {
    display: inline-block;
    background: transparent;
    border: 1px solid #f58220;
    color: #f4f6fa;
    padding: 6px 18px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    margin-left: 10px;
    /* مسافة بين الزرين */
    text-decoration: none;
    /* إزالة الخط تحت الرابط */
}

#backBtn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f58220, #ff944d);
    transition: left 0.4s ease;
    z-index: -1;
}

#backBtn:hover::before {
    left: 0;
}

#backBtn:hover {
    color: #fff;
    border: 1px solid transparent;
    transform: scale(1.08);
}


/* ------------------------------ */
/* 🔹 Templates Section */
/* ------------------------------ */
#templates {
    padding: 100px 40px;
    background: linear-gradient(160deg, #0b1320, #101a2c 85%);
    text-align: center;
}

#templates h2 {
    font-size: 2.8rem;
    color: #f58220;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(245, 130, 32, 0.6);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 36px;
}

/* ------------------------------ */
/* 🔹 Template Card */
/* ------------------------------ */
.template-card {
    position: relative;
    background: #111a29;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(13, 21, 35, 0.7);
}

.template-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 22px 48px rgba(245, 130, 32, 0.35);
}

.template-card .card-overlay {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.template-card:hover .card-overlay {
    opacity: 0.8;
    /* التأثير الطبيعي على hover */
}

/* عندما يكون الفيديو شغال */
.template-card.video-playing .card-overlay {
    opacity: 0 !important;
    /* إخفاء overlay */
    pointer-events: none;
    /* تعطيل التفاعل */
}

/* Card Image */
.card-image {
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    box-shadow: inset 0 0 30px rgba(245, 130, 32, 0.1);
}

.card-image img {
    width: 100%;
    display: block;
    border-radius: 24px 24px 0 0;
    transition: transform 0.6s ease;
    will-change: transform;
}

.template-card:hover img {
    transform: scale(1.12) rotate(1deg);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 21, 35, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
    backdrop-filter: blur(4px);
    border-radius: 24px 24px 0 0;
}

.template-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h3 {
    margin-bottom: 18px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 0 6px rgba(245, 130, 32, 0.8);
}

.card-specs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 20px;
    background: #0d1523;
    border-top: 1px solid rgba(245, 130, 32, 0.3);
    border-radius: 0 0 20px 20px;
    font-size: 0.95rem;
    color: #f58220;
    -webkit-border-radius: 0 0 20px 20px;
    -moz-border-radius: 0 0 20px 20px;
    -ms-border-radius: 0 0 20px 20px;
    -o-border-radius: 0 0 20px 20px;
}

.card-specs.open {
    max-height: 400px;
    padding: 15px 20px;
    overflow-y: auto;
    /* ✅ هذه هي الإضافة المطلوبة */
    scroll-behavior: smooth;
    /* (اختياري) للتمرير السلس */
}

.card-specs.open::-webkit-scrollbar {
    width: 8px;
}

.card-specs.open::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.card-specs.open::-webkit-scrollbar-thumb {
    background: #f58220;
    border-radius: 10px;
}

.card-specs.open::-webkit-scrollbar-thumb:hover {
    background: #ffa14a;
}


.btn.details-btn {
    background: linear-gradient(90deg, #f58220, #ff944d);
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

/* Live Button */
.btn.live {
    opacity: 0;
    transform: translateY(24px);
    background: linear-gradient(90deg, #f58220 0%, #ffb347 100%);
    padding: 12px 30px;
    border-radius: 35px;
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(245, 130, 32, 0.45);
    transition: all 0.45s ease;
    letter-spacing: 0.5px;
}

.template-card:hover .btn.live {
    opacity: 1;
    transform: translateY(0);
}




.btn.icon-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    background: linear-gradient(90deg, #f58220, #ff944d);
    border-radius: 50%;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.4);
    transition: all 0.35s ease;
    margin-left: 10px;
}

.btn.icon-download:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(245, 130, 32, 0.5);
}

/* Tooltip Wrapper */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

/* Tooltip Text */
.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    max-width: 200px;
    background-color: rgba(13, 21, 35, 0.95);
    color: #fff;
    text-align: center;
    padding: 6px 12px;
    border-radius: 8px;
    position: absolute;
    z-index: 10;
    bottom: 120%;
    /* مكان التولتيب فوق الزر */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.4s ease;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    white-space: nowrap;
}

/* Show tooltip on hover */
.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}




/**watch capper**/


.video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-cover {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn-overlay::before {
    content: "▶";
    position: absolute;
    font-size: 3rem;
    color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}
/* ------------------------------ */
/* 🔹 Card Footer (Price + Buy Button) */
/* ------------------------------ */
.card-footer {
    background: #0d1523;
    padding: 25px 30px;
    text-align: center;
    border-top: 1.5px solid rgba(245, 130, 32, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 24px 24px;
}

.card-footer .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f58220;
    letter-spacing: 0.8px;
}

.buy-btn {
    background: linear-gradient(135deg, #11e843, #016f1b);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 177, 50, 0.3);
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(55, 250, 29, 0.4);
    background: linear-gradient(135deg, #00ff3c, #039726);
}

.card-specs ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-specs li {
    background: rgba(245, 130, 32, 0.05);
    padding: 12px 16px;
    border-left: 4px solid #f58220;
    border-radius: 12px;
    color: #f4f6fa;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
    animation: fadeInList 0.8s ease forwards;
}

.card-specs li:hover {
    background: rgba(245, 130, 32, 0.12);
    transform: translateX(5px);
}

.card-specs li::before {
    content: "✔";
    color: #f58220;
    font-weight: bold;
    margin-right: 8px;
    display: none;
    /* الإيموجي موجود بالفعل، لذا يمكن إخفاء العلامة */
}

@keyframes fadeInList {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------ */
/* 🔹 Portfolio Buttons */
/* ------------------------------ */
#portfolio .btn {
    background: transparent;
    border: 2px solid #f58220;
    color: #f4f6fa;
    transition: all 0.45s ease;
    padding: 12px 30px;
    border-radius: 35px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.8px;
}

#portfolio .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, #f58220, #ff944d);
    transition: left 0.45s ease;
    z-index: -1;
    filter: drop-shadow(0 0 6px #f58220);
}

#portfolio .btn:hover::before {
    left: 0;
}

#portfolio .btn:hover {
    color: #fff;
    border: 2px solid transparent;
    transform: scale(1.12);
}

/* ------------------------------ */
/* 🔹 Language Toggle Button */
/* ------------------------------ */
#langToggle {
    background: transparent;
    border: 2px solid #f58220;
    color: #f4f6fa;
    padding: 8px 22px;
    border-radius: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.45s ease;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.8px;
    user-select: none;
}

#langToggle::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, #f58220, #ff944d);
    transition: left 0.45s ease;
    z-index: -1;
    filter: drop-shadow(0 0 5px #f58220);
}

#langToggle:hover::before {
    left: 0;
}

#langToggle:hover {
    color: #fff;
    border: 2px solid transparent;
    transform: scale(1.1);
}



/* ===========================
   Testimonials Section (Final)
=========================== */
#testimonials {
    background: linear-gradient(145deg, #0b1320, #101a2c);
    padding: 90px 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#testimonials h2 {
    font-size: 2.3rem;
    color: #f58220;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInDown 1s ease-in-out;
}

/* Container Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Testimonial Card */
.testimonial-card {
    background: #111a29;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #f58220;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease forwards;
    animation-delay: 0.3s;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(245, 130, 32, 0.2);
}

/* Decorative Quote Icon */
.testimonial-card::before {
    content: "“";
    position: absolute;
    font-size: 4rem;
    color: rgba(245, 130, 32, 0.2);
    top: -10px;
    left: 20px;
    z-index: 0;
}

/* Testimonial Text */
.testimonial-card .quote {
    font-size: 1.1rem;
    color: #cdd3dd;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

/* Client Info */
.client-info {
    text-align: right;
    position: relative;
    z-index: 2;
}

.client-name {
    font-weight: 700;
    color: #f4f6fa;
    font-size: 1.1rem;
}

.client-role {
    font-size: 0.9rem;
    color: #c7cdd6;
}

/* Responsive Animation */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 25px 18px;
    }

    .testimonial-card .quote {
        font-size: 1rem;
    }
}

/* Scroll Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal */
.order-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 21, 35, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.order-content {
    background: #111a29;
    padding: 40px 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: zoomSlideFade 0.4s ease;
}

.order-content h3 {
    color: #f58220;
    margin-bottom: 25px;
    text-align: center;
}

.order-content label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #c7cdd6;
}

.order-content input,
.order-content textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #0d1523;
    color: #fff;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.confirm-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #f58220, #ff944d);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(245, 130, 32, 0.4);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #f58220;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff944d;
}

/* Success Message */
.order-success {
    display: none;
    position: fixed;
    z-index: 3000;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 26, 40, 0.95);
    color: #f4f6fa;
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid #f58220;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    font-size: 0.95rem;
    animation: fadeInUp 0.5s ease;
}
/* ------------------------------ */
/* 🔹 Footer */
/* ------------------------------ */
footer {
    background: #111a29;
    padding: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #c7cdd6;
}




/* الحاوية للأزرار */
.services-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease forwards;
}

/* تنسيق الأزرار */
.service-btn {
    background: linear-gradient(135deg, #da7319, #b75601);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.service-btn:hover {
    background: linear-gradient(135deg, #da7319, #b75601);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* أنيميشن دخول للأزرار */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* أنماط أزرار التصفية */
.service-btn {
    background: linear-gradient(135deg, #da7319, #b75601);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.service-btn.active {
    background: linear-gradient(135deg, #f58220, #ff944d);
    box-shadow: 0 6px 15px rgba(245, 130, 32, 0.4);
    transform: translateY(-2px);
}

.service-btn:hover {
    background: linear-gradient(135deg, #f58220, #ff944d);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* تأثيرات الانتقال للقوالب */
.template-card {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: scale(1);
}

/* تحسين الشبكة */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 36px;
    transition: all 0.3s ease;
}

.highlight-template {
    outline: 3px solid #00bcd4;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.6);
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -ms-transition: all 1s ease;
    -o-transition: all 1s ease;
}







/***المسوقين**/

/*** نظام المسوقين - متوافق مع التصميم الحالي ***/

/* تنسيق حقل كود المسوق */
#affiliateCode {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
    background: rgba(13, 21, 35, 0.8);
    color: #f4f6fa;
}

#affiliateCode:focus {
    border-color: #f58220;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.2);
    outline: none;
    background: rgba(13, 21, 35, 0.9);
}

#affiliateCode.valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

#affiliateCode.invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* معلومات المسوقين */
.affiliate-info {
    margin-top: 15px;
    padding: 12px;
    background: rgba(13, 21, 35, 0.6);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    border: 1px solid rgba(245, 130, 32, 0.2);
}

.affiliate-info p {
    color: #c7cdd6;
    margin: 0;
}

.affiliate-info a {
    color: #f58220;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.affiliate-info a:hover {
    color: #ff944d;
    text-decoration: underline;
}

/* نافذة معلومات المسوقين */
.affiliate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 21, 35, 0.95);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.affiliate-content {
    background: #111a29;
    padding: 35px 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(245, 130, 32, 0.3);
    position: relative;
    animation: zoomSlideFade 0.4s ease;
}

.affiliate-content h3 {
    color: #f58220;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.affiliate-details {
    margin-top: 20px;
}

.affiliate-details p {
    color: #cdd3dd;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}

.affiliate-details ul {
    text-align: right;
    margin: 20px 0;
    padding-right: 20px;
    list-style: none;
}

.affiliate-details li {
    margin-bottom: 12px;
    color: #f4f6fa;
    font-size: 0.95rem;
    padding-right: 30px;
    position: relative;
    line-height: 1.5;
}

.affiliate-details li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #f58220;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn.affiliate-join {
    background: linear-gradient(135deg, #f58220, #ff9940);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}

.btn.affiliate-join:hover {
    background: linear-gradient(135deg, #ff9940, #f58220);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 130, 32, 0.4);
}

/* إغلاق نافذة المسوقين */
.affiliate-content .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #f58220;
    transition: color 0.3s;
}

.affiliate-content .close-btn:hover {
    color: #ff944d;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .affiliate-content {
        padding: 25px 20px;
        margin: 20px;
    }

    .affiliate-content h3 {
        font-size: 1.3rem;
    }

    .affiliate-details li {
        font-size: 0.9rem;
        padding-right: 25px;
    }

    .btn.affiliate-join {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* أنيميشن الدخول */
@keyframes zoomSlideFade {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}







/* تحسينات للمعرض الأفقي */
.gallery-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.gallery-wrapper:active {
    cursor: grabbing;
}

.gallery-wrapper::-webkit-scrollbar {
    height: 8px;
}

.gallery-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.gallery-wrapper::-webkit-scrollbar-thumb {
    background: #f58220;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.gallery-wrapper::-webkit-scrollbar-thumb:hover {
    background: #ffa14a;
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    .gallery-wrapper {
        -webkit-overflow-scrolling: touch;
        /* تحسين السحب على iOS */
    }

    .gallery-arrow {
        padding: 8px;
        font-size: 24px;
    }
}