@font-face {
    font-family: 'Doran';
    src: url('../font/Doran-Regular.woff2') format('woff2'),
    url('./font/Doran-Regular.woff') format('woff');
    font-weight: 400; /* أو normal */
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Doran-Bold';
    src: url('../font/Doran-Medium.woff2') format('woff2'),
    url('./font/Doran-Medium.woff') format('woff');
    font-weight: 400; /* أو normal */
    font-style: normal;
    font-display: swap;
}
html,body{
    overflow-x: hidden;
}
.project-image{
    max-height: 436px;
}
/* Style for active filter button */
button.active {
    background-color: #1f2937; /* gray-800 */
    color: white;
    border-color: #1f2937;
}

/* Hide all project cards by default */
.project-card {
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
}

/* Show visible project cards */
.project-card.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* Hover effect for filter buttons */
/*button:hover {*/
/*    background-color: #f3f4f6; !* gray-100 *!*/
/*    transform: translateY(-2px);*/
/*    transition: all 0.3s ease;*/
/*}*/

/*button.active:hover {*/
/*    background-color: #374151; !* gray-700 *!*/
/*}*/

/* Style for active filter button */
button.active {
    background-color: #1f2937; /* gray-800 */
    color: white;
    border-color: #1f2937;
    transition: all 0.3s ease;
}

/* Project cards default state */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Show visible project cards */
.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delay for smooth cascade effect */
.project-card.visible:nth-child(1) {
    transition-delay: 0s;
}

.project-card.visible:nth-child(2) {
    transition-delay: 0.1s;
}

.project-card.visible:nth-child(3) {
    transition-delay: 0.15s;
}

.project-card.visible:nth-child(4) {
    transition-delay: 0.2s;
}

.project-card.visible:nth-child(5) {
    transition-delay: 0.25s;
}

.project-card.visible:nth-child(6) {
    transition-delay: 0.3s;
}

.project-card.visible:nth-child(7) {
    transition-delay: 0.35s;
}

.project-card.visible:nth-child(8) {
    transition-delay: 0.4s;
}

/* Hover effect for filter buttons */
button {
    transition: all 0.3s ease;
}

button:hover {
    /*background-color: #f3f4f6; !* gray-100 *!*/
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button.active:hover {
    background-color: #374151; /* gray-700 */
    transform: translateY(-2px);
}
body{
    margin: 0;
    padding: 0;
    font-family:Doran,sans-serif;
    color:#1E1E1E;
}
:root {
    --primary-color: #1E1E1E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    direction: rtl;
}
.logo-home{
    height:130px
}


.container {
    /*max-width: 900px;*/
    width: 100%;
    background: white;
    /*border-radius: 20px;*/
    /*box-shadow: 0 20px 60px rgba(0,0,0,0.3);*/
    overflow: hidden;
    /*padding: 30px;*/
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 77vh;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

/* تخصيص أزرار التنقل */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(0,0,0,0.5);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    margin-top: -25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

/* إصلاح pagination */
.swiper-pagination {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    display: block !important;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    display: inline-block !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.5) !important;
    opacity: 1 !important;
    margin: 0 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 0.8) !important;
    width: 18px !important;
    height:18px !important;
    border-radius: 50% !important;
    /*box-shadow: 0 0 20px rgba(102, 126, 234, 0.5) !important;*/
}

/* تأكد من ظهور pagination في جميع الشرائح */
.swiper-pagination-bullet:hover {
    background: rgba(255,255,255,0.8) !important;
}
/* معلومات الصورة */
.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.swiper-slide:hover .slide-info {
    transform: translateY(0);
}

.slide-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-info p {
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* معلومات إضافية */
.slider-info {
    text-align: center;
    margin-top: 30px;
    color: #666;
}

.controls-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #1E1E1E;
}
dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
}

dialog[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

dialog::backdrop {
    position: fixed;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #1e1e1e;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

/* Dialog Backdrop */
dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

/* Dialog Fixed Position */
dialog {
    position: fixed;
    inset: 0;
    margin: auto;
}

/* منع تمرير الصفحة في الخلفية */
body:has(dialog[open]) {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
.navbar {
     background: transparent;
     backdrop-filter: none;
     -webkit-backdrop-filter: none;
     padding: 1.5rem 5%;
     box-shadow: none;
     /*border: none;*/
     position: sticky;
     top: 0;
     width: 100%;
     z-index: 1000;
     transition: all 0.4s ease;
     visibility: visible;
     opacity: 1;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed !important;
    top: 0;
    padding: 1rem 5%;
    visibility: visible;
    opacity: 1;
}

.hamburger-container {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.navbar.scrolled .hamburger-btn {
    position: unset !important;
}

.hamburger-btn {
    position: absolute;
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    top: -1.5rem;
    right: 0;
    transition: all 0.3s ease;
    /*box-shadow: 0 4px 15px rgba(30, 30, 30, 0.2);*/
    z-index: 1002;
}

.hamburger-btn:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 30, 30, 0.3);
}

.hamburger-line {
    width: 26px;
    height: 2.5px;
    background: #1e1e1e;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.dropdown-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    background: #1e1e1e;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled ~ .dropdown-menu,
.navbar.scrolled + * .dropdown-menu {
    top: 70px;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    display: none;
}

.menu-header {
    padding: 35px 5%;
    background: #1e1e1e;
    color: #ffffff;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-content {
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-item {
    padding: 1.8rem 2rem;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-right: 2.5rem;
}

/*.menu-item::after {*/
/*    content: '→';*/
/*    font-size: 20px;*/
/*    opacity: 0;*/
/*    transition: all 0.3s ease;*/
/*}*/

.menu-item:hover::after {
    opacity: 1;
}

.menu-footer {
    padding: 2rem 5%;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* للشاشات الكبيرة */
@media (min-width: 768px) {
    .dropdown-menu {
        top: 85px;
        max-height: calc(100vh - 85px);
    }

    .navbar.scrolled ~ .dropdown-menu,
    .navbar.scrolled + * .dropdown-menu {
        top: 70px;
        max-height: calc(100vh - 70px);
    }

    .menu-content {
        padding: 2.5rem 0;
    }

    .menu-item {
        padding: 2rem 3rem;
    }

    .menu-item:hover {
        padding-right: 3.5rem;
    }
}

/* للأجهزة المحمولة */
@media (max-width: 767px) {
    .navbar {
        padding: 1rem 4%;
    }

    .navbar.scrolled {
        padding: 0.8rem 4%;
    }

    .dropdown-menu {
        top: 65px;
        max-height: calc(100vh - 65px);
    }

    .menu-header {
        font-size: 18px;
        padding: 30px 4%;
    }

    .menu-item {
        font-size: 16px;
        padding: 1.5rem 1.5rem;
    }

    .menu-item:hover {
        padding-right: 2rem;
    }
}
.menu-items {
    padding: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    color: #2C2C2C;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid #e8e8e8;
    position: relative;
    background: #ffffff;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #1E1E1E;
    color: #ffffff;
    transform: translateX(-8px);
    box-shadow: inset 4px 0 0 #007bff;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.menu-item:hover::before {
    width: 4px;
}

.menu-item .text {
    flex: 1;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.menu-item .arrow {
    margin-right: 15px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: bold;
}

.menu-item:hover .arrow {
    opacity: 1;
    transform: translateX(-5px);
}

/* خلفية عند فتح القائمة */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 0.8;
    visibility: visible;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .logo-home{
        height:100px;
    }
    .navbar {
        padding:0.5rem 0.8rem;
    }

    .hamburger-btn {
        width: 40px;
        height: 40px;
    }
    .hamburger-line{
        width: 24px;
        height:3px;
    }



    .dropdown-menu {
        min-width: 250px;
        right: 0;
    }

    .menu-item {
        font-size: 14px;
        padding: 18px 25px;
    }
}

/* محتوى الصفحة */
.content {
    padding: 2rem;
    background: white;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tall-content {
    height: 300vh;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

/* رسائل التشخيص */
.debug-info {
    position: fixed;
    top: 100px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    z-index: 2000;
}
.hamburger-container{
    display: none;
}
.project-image{
    max-height: 75vh;
    width: 100%;
}
/* Responsive */
@media (max-width: 768px) {
    .hamburger-container{
    display: block;
}
.item-desktop{
    display: none!important;
}
    .container {
        /*padding: 20px;*/
        /*margin: 10px;*/
    }
    .swiper-slide img{
        max-height: 80vh;
    }
    .title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .swiper {
        height: 300px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px;
    }

    .slide-info h3 {
        font-size: 1.2rem;
    }

    .slide-info p {
        font-size: 0.9rem;
    }

    .controls-info {
        gap: 15px;
    }

    .control-item {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}
.bg-primary{
    background-color: var(--primary-color);
}
.border-primary{
    border:1px solid var(--primary-color);
}
@media (max-width: 480px) {
    .swiper {
        height: 400px;
    }

    .slide-info {
        padding: 30px 15px 15px;
    }
}


@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.title-container {
    text-align: start;
    padding: 50px 20px;
}
dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #1e1e1e 50%, transparent 100%);
    background-size: 200% 100%;
    animation: slideColor 2s ease-in-out infinite;
}

@keyframes slideColor {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media (max-width: 768px) {
    dialog {
        top: 1rem;
        left: 0;
        right: 0;
        transform: none;
        margin: 0;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }
    dialog[open]{
        align-items: start;
    }
    .project-title {
        font-size: 2rem;
    }
}
