@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;
}
@font-face {
    font-family: 'HELVETICANEUELT';
    src: url('../../font/helvetica.ttf') format('woff2');
    font-style: normal;
    font-display: swap;
}
@font-face {
    /* Heavy / Bold condensed Helvetica Neue */
    font-family: 'HelveticaNeueLTProBdExO';
    src: url('../../font/HelveticaNeueLTProBdExO.woff2') format('woff2'),
         url('../../font/HelveticaNeueLTProBdExO.woff') format('woff'),
         url('../../font/HelveticaNeueLTProBdExO.ttf') format('truetype');
    font-weight: 700;
    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:HelveticaNeueLTProBdExO,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: 100vh;
    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;
}
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 1.5rem 5%;
    backdrop-filter: blur(10px);
    box-shadow: none;
    border: none;
    position: absolute;
    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 في البداية وإظهار الشعار في المنتصف */
body.home-page .navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home-page .navbar > a {
    /* position: absolute;
    left: 50%;
    transform: translateX(-50%); */
    z-index: 1001;
    visibility: visible;
    opacity: 1;
}

body.home-page .navbar .item-desktop,
body.home-page .navbar .hamburger-container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* الصفحة الرئيسية - السلايدر يأتي بعد الشعار */
body.home-page .xL\:container {
    margin-top: 80px;
    transition: margin-top 0.4s ease;
}

body.home-page .navbar.scrolled ~ .xL\:container,
body.home-page .navbar.scrolled ~ div .xL\:container {
    margin-top: 0;
}

/* بديل باستخدام attribute selector */
body.home-page [class*="xL"][class*="container"] {
    margin-top: 80px;
    transition: margin-top 0.4s ease;
}

body.home-page .navbar.scrolled ~ [class*="xL"][class*="container"],
body.home-page .navbar.scrolled ~ div [class*="xL"][class*="container"] {
    margin-top: 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 1)!important;
    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;
}

/* الصفحة الرئيسية - عند السكرول يظهر navbar كامل */
body.home-page .navbar.scrolled {
    visibility: visible;
    opacity: 1;
}

body.home-page .navbar.scrolled > a {
    position: relative;
    left: auto;
    transform: none;
}

body.home-page .navbar.scrolled .item-desktop,
body.home-page .navbar.scrolled .hamburger-container {
    opacity: 1;
    visibility: visible;
}

/* روابط navbar - بيضاء قبل scrolled */
.navbar .item-desktop a,
.navbar .menu-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.4s ease;
}

.navbar .item-desktop a:hover,
.navbar .menu-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* روابط navbar - الوضع الطبيعي بعد scrolled */
.navbar.scrolled .item-desktop a,
.navbar.scrolled .menu-link {
    color: #1e1e1e;
}

.navbar.scrolled .item-desktop a:hover,
.navbar.scrolled .menu-link:hover {
    color: #4a4a4a;
}

/* أيقونة caret في القائمة المنسدلة */
.navbar .menu-link .caret {
    color: #ffffff;
    transition: color 0.4s ease;
}

.navbar.scrolled .menu-link .caret {
    color: #1e1e1e;
}

.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: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, #1e1e1e 0%, #1e1e1e 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;
}

.hamburger-container{
    display: none;
}
/* تحسينات للجوال */
@media (max-width: 768px) {
      .hamburger-container{
    display: block;
}
.item-desktop{
    display: none!important;
}
    .logo-home{
        height:120px;
    }
    .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;
}
dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}
/* Responsive */
@media (max-width: 768px) {
    .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);
}

/* Azdan Section */
.azdan-section {
    background-color: #90603233;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.azdan-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: azdanSectionShine 3s ease-in-out 2s infinite;
}

@keyframes azdanSectionShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.azdan-text {
    color: #2c2c2c;
    font-size: 2rem;
    font-weight: 400;
    font-family: HelveticaNeueLTProBdExO, sans-serif;
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.4;
    opacity: 0;
    animation: azdanTextReveal 1.2s ease-out 0.3s forwards;
    position: relative;
    display: inline-block;
}

/* .azdan-text::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(144, 96, 50, 0.3), transparent);
    animation: azdanShimmer 2.5s ease-in-out 1.5s infinite;
    z-index: -1;
} */

@keyframes azdanTextReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.85);
        letter-spacing: 0.15em;
        filter: blur(4px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-8px) scale(1.05);
        letter-spacing: 0.04em;
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: 0.02em;
        filter: blur(0);
    }
}

@keyframes azdanShimmer {
    0% {
        right: -100%;
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        right: 100%;
        width: 0;
    }
}

.azdan-content {
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.azdan-content::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #906032, transparent);
    animation: azdanLineExpand 1s ease-out 1.8s forwards;
}

@keyframes azdanLineExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 60%;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .azdan-section {
        padding: 4rem 1.5rem;
        min-height: 150px;
    }

    .azdan-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .azdan-section {
        padding: 4.5rem 1rem;
        min-height: 120px;
    }

    .azdan-text {
        font-size: 1.5rem;
    }
}
@media (max-width: 480px) {
    .swiper {
        height: 400px;
    }

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