@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root
{
  /* COLORS */
  --white-color:#fff;
  --dark-color: #252525;
  --primary-color:#3b141c;
  --secondary-color:#f3961c;
  --light-pink-color:#faf4f5;
  --medium-gray-color:#ccc;
  --Silver-color:#979c9c;
  --text: #1F2937;
  --accent: #D6AD60;
  --muted: #6B7280;
 
  /* font size */
  --font-size-s: 0.9rem;
  --font-size-n: 1rem;
  --font-size-m: 1.12rem;
  --font-size-l: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-xxl: 2.3rem;

  /* font weight */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-blod: 700;

  /* Border radius */
  --border-radius-s: 8px;
  --border-radius-m: 30px;
  --border-radius-circle: 50%;

  /* Site max width */
  --site-max-width: 1300px;
}

/* Header section */

header{
    width: 100%; 
    max-width: 100%;
    padding-left: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
    background-color: #010505;
}

.nav-logo .logo-text
{

  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  padding-left: 20px;
}

/* شعار الموقع - حجم مناسب للهيدر */
.nav-logo .menu-logo {
  display: flex;
  align-items: center;
}
.nav-logo .menu-logo img {
  height: 70px;
  max-height: 7 0px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  vertical-align: middle;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
    z-index: 1001;
    margin-left: auto;
    margin-right: 20px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu
{
    margin-left: 30%;
}

header .nav-menu a{
    color: #fff;
    margin-right: 5px;
    padding: 5px 20px;
    font-size: 16px;
    transition: 0.2s;
    text-decoration: none;
}

a.active{
    background: #14ff72cb;
    border-radius: 2px;
}

a:hover{
    background: #14ff72cb;
    border-radius: 2px;
}


/* Header section */



/* carousel */

.carousel{
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    margin-top: -0px;
    overflow: hidden;
    position: relative;
}

.carousel .list .item{
    width: 180px;
    height: 250px;
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
    left: 70%;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 100;
    transition: 1s;
}

/* صورة الخلفية داخل كل شريحة - تضمن ظهور الصور بشكل صحيح */
.carousel .list .item .item-img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    /*display: block;*/
}

.carousel .list .item:nth-child(1),
.carousel .list .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.carousel .list .item:nth-child(3){
    left: 67%;
}

/*
.carousel .list .item:nth-child(4){
    left: calc(67% + 200px);
}

.carousel .list .item:nth-child(5){
    left: calc(67% + 400px);
}

.carousel .list .item:nth-child(6){
    left: calc(67% + 600px);
}

.carousel .list .item:nth-child(n+7){
    left: calc(67% + 800px);
    opacity: 0;
}
    */

/* Carousel - Tablet Responsive (صور متجاوبة) */
@media screen and (max-width: 1024px){
    .carousel{
        height: 75vh;
        min-height: 420px;
    }
    .carousel .list .item{
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Carousel - Mobile Responsive (صور متجاوبة بالكامل) */
@media screen and (max-width: 767px){
    .carousel{
        height: 65vh;
        min-height: 380px;
        margin-top: 0;
    }

    .carousel .list{
        width: 100%;
        height: 100%;
        padding: 0;
    }

    /* جميع العناصر على الجوال بحجم كامل للصورة */
    .carousel .list .item{
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        border-radius: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* الشريحة النشطة (الثانية) - تظهر بالكامل */
    .carousel .list .item:nth-child(1),
    .carousel .list .item:nth-child(2){
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
    }

    /* الشريحة الثالثة خارج الشاشة */
    .carousel .list .item:nth-child(3){
        left: 100% !important;
        opacity: 0;
        pointer-events: none;
    }

    /* إظهار النص للشريحة النشطة فقط (الثانية = الصورة الحالية) */
    .list .item .content{
        display: none;
    }

    .list .item:nth-child(2) .content{
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        padding: 20px 16px 28px;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
        color: #fff;
        text-align: center;
    }

    .list .item:nth-child(2) .content .title{
        font-size: 14px;
        letter-spacing: 2px;
        color: rgba(255,255,255,0.9);
    }

    .list .item:nth-child(2) .content .name{
        font-size: 10px;
        line-height: 1.2;
        text-shadow: 1px 2px 4px rgba(0,0,0,0.8);
        margin: 4px 0 8px;
    }

    .list .item:nth-child(2) .content .des{
        font-size: 15px;
        line-height: 1.5;
        margin: 0 0 14px;
        color: rgba(255,255,255,0.95);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .list .item:nth-child(2) .content .btn{
        margin-left: 0;
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .list .item:nth-child(2) .content .btn button{
        padding: 8px 16px;
        font-size: 13px;
    }

    /* إخفاء خط التوقيت في وضع الجوال */
    .carousel .timeRunning{
        display: none;
    }

    /* إخفاء الأسهم على الشاشات الصغيرة - استخدام السحب/التمرير (Swipe) بدلاً منها */
    .carousel .arrows{
        display: none;
    }

    /* تلميح للمستخدم: اسحب لليسار/يمين لتبديل الصور */
    .carousel::after{
        content: 'اسحب لتبديل الصور ← →';
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 12px;
        color: rgba(255,255,255,0.8);
        z-index: 99;
        pointer-events: none;
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }
}

@media screen and (max-width: 480px){
    .carousel{
        height: 55vh;
        min-height: 320px;
    }

    .list .item:nth-child(2) .content .name{
        font-size: 22px;
    }

    .list .item:nth-child(2) .content .des{
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .list .item:nth-child(2) .content{
        padding: 16px 12px 22px;
    }
}
.list .item .content{
    position: absolute;
    top: 50%;
    left: 200px;
    transform: translateY(-50%);
    width: 400px;
    text-align: left;
    color: #C5A572;
    display: none;
    z-index: 2;
}

.list .item:nth-child(2) .content{
    display: block;
}

.content .title{
    font-size: 100px;
    text-transform: uppercase;
    color: #979c9c;
    font-weight: bold;
    line-height: 1;

    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.content .name{
    font-size: 70px;
    text-transform:inherit;
    font-weight: bold;
    line-height: 1;
    color: #C5A572;
    text-shadow: 3px 4px 4px rgba(255, 255, 255, 0.8);

    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

.content .des{
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    margin-left: 5px;

    opacity: 0;
    animation: animate 1s ease-in-out 0.9s 1 forwards;
}

.content .btn{
    margin-left: 5px;

    opacity: 0;
    animation: animate 1s ease-in-out 1.2s 1 forwards;
}

.content .btn button{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid #fff;
}

.content .btn button:nth-child(1){
    margin-right: 15px;
}

.content .btn button:nth-child(2){
    background: transparent;
    color: #14ff72cb;
    border: 2px solid #fff;
    transition: 0.3s;
}

.content .btn button:nth-child(2):hover{
    background-color: #14ff72cb;
    color: #fff;
    border-color: #14ff72cb;
}


@keyframes animate {
    
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* خدمات */
#services {
    text-align: center;
    padding: 40px 20px;
    direction: rtl;
}

#services > h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text);
    font-weight: var(--font-weight-blod);
}

.service-group {
    margin-bottom: 50px;
}

.group-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    margin-top: 30px;
    color: var(--accent);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    width: 100%;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 280px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: var(--font-weight-semibold);
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card button,
.service-card .service-btn,
.card-body .service-btn,
.package-footer .service-btn {
    background: var(--accent);
    color: #111827;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
    max-width: 250px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.service-card button:hover,
.service-card .service-btn:hover,
.card-body .package-footer .service-btn:hover,
.package-footer .service-btn:hover {
    background: #c49a4f;
    transform: scale(1.05);
}

.service-card button:active,
.service-card .service-btn:active,
.card-body .package-footer .service-btn:active,
.package-footer .service-btn:active {
    transform: scale(0.98);
}

/* Responsive Design for Services */
@media screen and (max-width: 768px) {
    #services {
        padding: 30px 15px;
    }

    #services > h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .group-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .service-card {
        padding: 20px;
        min-height: 250px;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .service-card button {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    #services {
        padding: 20px 10px;
    }

    #services > h2 {
        font-size: 1.4rem;
    }

    .group-title {
        font-size: 1.2rem;
    }

    .service-card {
        padding: 15px;
        min-height: 220px;
    }

    .service-icon {
        font-size: 2rem;
    }
}

/* carousel */

/* next prev arrows - سهم يسار وسهم يمين عند نهاية الصور */

.arrows{
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
}

.arrows button{
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #14ff72cb;
    color: #fff;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
    cursor: pointer;
}

.arrows button:hover{
    background: #fff;
    color: #000;
}


/* time running */
.carousel .timeRunning{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 4px;
    background-color: #0f1411cb;
    left: 0;
    top: 0;
    animation: runningTime 7s linear 1 forwards;
}

@keyframes runningTime {
    
    from{width: 0%;}
    to{width: 100%;}

}


/* Responsive Design */

@media screen and (max-width: 999px){
    
    header{
        padding-left: 50px;
    }

    .list .item .content{
        left: 50px;
    }

    .content .title, .content .name{
        font-size: 70px;
    }

    .content .des{
        font-size: 16px;
    }

}

@media screen and (max-width: 824px){
    header{
        padding-left: 20px;
        padding-right: 20px;
        justify-content: space-between;
    }

    .nav-logo .menu-logo img {
        height: 80%;
        max-height: 44px;
        max-width: 130px;
    }

    .nav-logo .logo-text {
        font-size: var(--font-size-l);
        padding-left: 10px;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 50px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 50px);
        background-color: #979c9c;
        flex-direction: column;
        padding: 20px;
        transition: right 0.3s ease;
        margin-left: 0;
        z-index: 2001;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        display: block;
        padding: 15px 10px;
        margin: 5px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media screen and (max-width: 690px){
    header nav a{
        font-size: 14px;
        margin-right: 0;
    }

    .list .item .content{
        top: 40%;
    }

    .content .title, .content .name{
        font-size: 45px;
    }

    .content .btn button{
        padding: 10px 15px;
        font-size: 14px;
    }
}