
/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/


body {
    margin: 0;
    padding: 0;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1, h2, h3, .h1, .h2, .h3 {
    font-weight: 400 !important;
    font-family: 'Playball', cursive !important;
}

h4, h5, h6, .h4, .h5, .h6 {
    font-weight: 600 !important;
    font-family: 'Open Sans', sans-serif !important;
}

.nav-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

/* 🔥 أهم تعديل */
.my-6 {
    margin-top: 0 !important; /* كان 6rem وده سبب الفراغ */
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.wow,
.animated {
    animation-duration: 2s !important;
}

/*** Button Start ***/
.btn.btn-primary {
    border: 0;
}

.btn.btn-primary:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-primary) !important;
}

.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square { width: 32px; height: 32px; }
.btn-sm-square { width: 38px; height: 38px; }
.btn-md-square { width: 44px; height: 44px; }
.btn-lg-square { width: 56px; height: 56px; }

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
/*** Button End ***/


/*** HERO SECTION ***/
.hero-section {
  display: flex;
  min-height: 100vh;
  padding-top: 0px;
}

/* كل عمود */
.hero-item {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: all 0.4s ease;
  cursor: pointer;
}

/* الصور */
.hero-item:nth-child(1) { background-image: url('../img/hero1.jpg'); }
.hero-item:nth-child(2) { background-image: url('../img/hero5.jpg'); }
.hero-item:nth-child(3) { background-image: url('../img/hero4.jpg'); }
.hero-item:nth-child(4) { background-image: url('../img/hero2.jpg'); }
.hero-item:nth-child(5) { background-image: url('../img/hero3.jpg'); }

/* Hover للاب فقط */
.hero-item:hover {
  flex: 3;
}

.hero-section:hover .hero-item:not(:hover) {
  flex: 0.7;
}

/* النص */
.overlay {
  position: absolute;
  bottom: 30px;
  left: 20px;
  z-index: 2;

  /* البلور */
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  padding: 14px 18px;
  border-radius: 16px;
}

/* العناوين الرئيسية */
.overlay h3 {
  color: #6e8d3b;
  margin-bottom: 8px;
}

/* النص الصغير */
.overlay p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 0;
}

/* طبقة غامقة */
.hero-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

/* 📱 أي جهاز أقل من لاب */
@media (max-width: 1199px) {

  .hero-section {
    flex-direction: column;
    padding-top: 0px;
  }

  .hero-item {
    width: 100%;
    height: 100vh;
    flex: unset;
  }

  /* إلغاء hover */
  .hero-item:hover,
  .hero-section:hover .hero-item:not(:hover) {
    flex: unset;
  }
}

/*** NAVBAR GLASS (مظبوط) ***/
.nav-bar {
    position: fixed;
    top: 0; /* 👈 بدل 20px */
    left: 0;
    width: 100%;
    transform: none;
    z-index: 999;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    background: transparent !important;
}

.navbar .nav-link {
    color: #000 !important;
}

.navbar .nav-link:hover {
    color: #6e8d3b!important;
}
/* الإعدادات العامة للحاوية */
.custom-logo-wrapper {
    position: relative;
    width: min(450px, 90vw);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.logo-shape {
    position: relative;
    width: 100%;
    height: 100%;
}

/* المربع المركزي */
.shape-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 33.33%;
    height: 33.33%;
    background-color: #385b34;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 10;
}

/* حاوية الذراع المقسم */
.arm-group {
    position: absolute;
    width: 36.6%;
    height: 36.6%;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translate(var(--x), var(--y)) rotate(var(--rot));
}

.sub-arm {
    width: 100%;
    height: 45%;
    border-radius: 2px;
}

.dark-shade { 
    background-color: #385b34; 
}

.light-shade { 
    background-color: #7a944e; 
}

/* ---------------------------------------------------- */
/* منطقة التحكم */
/* ---------------------------------------------------- */

.arm-1 { 
    --x: -170%;
    --y: -99%;
    --rot: 45deg;
    transform-origin: right bottom; 
}

.arm-2 { 
    --x: 70%; 
    --y: -99%; 
    --rot: -45deg;
    transform-origin: left bottom;
}

.arm-3 { 
    --x: -170%; 
    --y: -1%; 
    --rot: -45deg;
    transform-origin: right top;
}

.arm-4 { 
    --x: 70%; 
    --y: -1%; 
    --rot: 45deg;
    transform-origin: left top;
}

/* ---------------------------------------------------- */

/* الدوائر الخارجية */
.shape-dot {
    position: absolute;
    width: 26.6%;
    height: 26.6%;
    border-radius: 50%;
    z-index: 5;
}

/* أماكن الدوائر */
.dot-top { 
    top: -9%; 
    left: 50%; 
    transform: translateX(-50%); 
    background-color: #7a944e; 
}

.dot-bottom { 
    bottom: -9%; 
    left: 50%; 
    transform: translateX(-50%); 
    background-color: #7a944e; 
}

.dot-left { 
    left: -9%; 
    top: 50%; 
    transform: translateY(-50%); 
    background-color: #385b34; 
}

.dot-right { 
    right: -9%; 
    top: 50%; 
    transform: translateY(-50%); 
    background-color: #385b34; 
}

/* موبايل */
@media (max-width: 768px) {
    .custom-logo-wrapper {
        width: min(380px, 92vw);
    }
}

/* موبايلات صغيرة */
@media (max-width: 480px) {
    .custom-logo-wrapper {
        width: min(320px, 90vw);
    }
}

/* أصغر موبايلات */
@media (max-width: 360px) {
    .custom-logo-wrapper {
        width: min(280px, 88vw);
    }
}

/* ==================================================== */
/* الانيميشن يظهر مع الاسكرول */
/* ==================================================== */

/* الماسة */
.custom-logo-wrapper.show .shape-center {
    animation: centerFade 0.6s ease forwards;
}

/* الدروع */
.custom-logo-wrapper.show .arm-group {
    animation: armIn 0.6s ease forwards;
}

.custom-logo-wrapper.show .arm-1 { animation-delay: 0.3s; }
.custom-logo-wrapper.show .arm-2 { animation-delay: 0.4s; }
.custom-logo-wrapper.show .arm-3 { animation-delay: 0.5s; }
.custom-logo-wrapper.show .arm-4 { animation-delay: 0.6s; }

/* ==================================================== */
/* Animations */
/* ==================================================== */

@keyframes centerFade {
    from {
        transform: translate(-50%, -50%) rotate(45deg) scale(0.5);
    }
    to {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
}

@keyframes armIn {
    from {
        transform: translate(var(--x), calc(var(--y) - 40%)) rotate(var(--rot));
    }
    to {
        transform: translate(var(--x), var(--y)) rotate(var(--rot));
    }
}

/* ==================================================== */
/* Hover */
/* ==================================================== */

.shape-center,
.shape-dot {
    transition: transform 0.2s ease;
    cursor: pointer;
}
/* تكبير الماسة */
.shape-center:hover {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.15);
}

/* تكبير الدواير */
.shape-dot:hover {
    transform: scale(1.2);
}
/* hover للكمبيوتر */
.dot-top:hover { transform: translateX(-50%) scale(1.7); }
.dot-bottom:hover { transform: translateX(-50%) scale(1.7); }
.dot-left:hover { transform: translateY(-50%) scale(1.7); }
.dot-right:hover { transform: translateY(-50%) scale(1.7); }

/* touch للموبايل */
.dot-top:active { transform: translateX(-50%) scale(1.7); }
.dot-bottom:active { transform: translateX(-50%) scale(1.7); }
.dot-left:active { transform: translateY(-50%) scale(1.7); }
.dot-right:active { transform: translateY(-50%) scale(1.7); }
/* تجهيز الماسة */
.shape-center {
    transition: transform 0.2s ease;
    cursor: pointer;
}

/* تكبير الماسة مع الحفاظ على مكانها */
.shape-center:hover {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.30);
}
.shape-center:hover {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.30);
    box-shadow: 0 0 20px rgba(122, 148, 78, 0.6);
}
.shape-center img,
.shape-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shape-dot,
.shape-center {
    overflow: hidden;
}
/* تحسين الأداء */
/* تحسين الأداء بدون تغيير المكان */
.shape-dot,
.shape-center {
    will-change: transform;
    backface-visibility: hidden;
}
.shape-dot {
    will-change: transform;
    backface-visibility: hidden;
    transform: scale(); /* بيشغل GPU بدون ما يغير المكان */
}
/*** Events End ***/


/*** service start ***/
.service .service-item {
    position: relative;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    bottom: auto;
    background: var(--bs-primary);
    border-radius: 8px;
    transition: 1s;
}

.service-item:hover .service-content::after {
    height: 100%;
    opacity: 1;
}

.service-item .service-content-icon {
    position: relative;
    z-index: 2;
}

.service-item .service-content-icon i,
.service-item .service-content-icon p {
    transition: 1s;
}

.service-item:hover .service-content-icon i {
    color: var(--bs-dark) !important;
}

.service-item:hover .service-content-icon p {
    color: var(--bs-white);
}

.service-item:hover .service-content-icon a.btn-primary {
    background: var(--bs-white);
    color: var(--bs-dark);
}

.service-item .service-content-icon a.btn-primary {
    transition: 1s !important;
}
/*** Services End ***/


/*** Menu Start ***/
.menu .nav-item a.active {
    background: var(--bs-primary) !important;
}

.menu .menu-item .border-bottom {
    border-bottom-style: dashed !important;
}
/*** Menu End ***/


/*** Youtube Video start ***/
.video {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(rgba(254, 218, 154, 0.1), rgba(254, 218, 154, 0.1)), url(../img/fact.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 8px;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--bs-white);
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--bs-dark);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}
/*** Youtube Video End ***/


/*** Blog Start ***/
.blog-item {
    position: relative;
}

.blog-item img {
    transition: 0.5s;
}

.blog-item:hover img {
    transform: scale(1.3)
}

.blog-item .blog-content {
    position: relative;
    transform: translateY(-50%);
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.blog-item .blog-content a.btn h5 {
    transition: 0.5s;
}

.blog-item:hover .blog-content a.btn h5 {
    color: var(--bs-primary) !important;
}
/*** Blog End ***/


/*** Team Start ***/
.team-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.team-item .team-icon {
    position: absolute;
    top: 0;
    right: 0;
}

.team-item .team-icon .share-link {
    opacity: 0;
    transition: 0.9s;
}

.team-item:hover .share-link {
    opacity: 1;
}

.team-item .team-content {
    transition: 0.9s;
}

.team-item:hover .team-content {
    background: var(--bs-primary) !important;
    color: var(--bs-dark) !important;
}

.team-item .team-content h4,
.team-item .team-content p {
    transition: 0.5s;
}

.team-item:hover .team-content h4 {
    color: var(--bs-dark) !important;
}

.team-item:hover .team-content p {
    color: var(--bs-white);
}
/*** Team End ***/


/*** testimonial Start ***/
.testimonial-item {
    border: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
}

.testimonial-carousel .owl-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.testimonial-carousel.owl-rtl .testimonial-item {
    direction: ltr !important;
}
/*** testimonial End ***/


/*** Contact start ***/
.contact-form {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

/*** Contact End ***/
.timeline-section{
    position:relative;
    max-width:1400px;
    margin:auto;
    padding:100px 20px;
}

.timeline-section::before{
    content:"";
    position:absolute;
    left:50%;
    top:0;
    width:4px;
    height:100%;
    background:linear-gradient(
        to bottom,
        #ffffff,
        #6e8d3b,
        #ffffff
    );
    transform:translateX(-50%);
}

.timeline-item{
    position:relative;
    width:50%;
    padding:25px 50px;
    opacity:0;
    transition:1s ease;
}

.timeline-item.left{
    left:0;
    transform:translateX(-80px);
}

.timeline-item.right{
    left:50%;
    transform:translateX(80px);
}

.timeline-item.show{
    opacity:1;
    transform:translateX(0);
}

.timeline-card{
    background:rgba(255,255,255,.9);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.5);
    padding:30px;
    border-radius:25px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
    transition:.4s;
}

.timeline-card:hover{
    transform:translateY(-10px);
    box-shadow:0 25px 60px rgba(0,0,0,.15);
}

.timeline-number{
    position:absolute;
    top:35px;
    width:60px;
    height:60px;
    background:#111;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    font-weight:700;
    z-index:5;
}

.timeline-item.left .timeline-number{
    right:-30px;
}

.timeline-item.right .timeline-number{
    left:-30px;
}

.timeline-card h3{
    font-size:28px;
    margin-bottom:15px;
}

.timeline-card p{
    color:#666;
    line-height:1.9;
    font-size:15px;
}

/* Tablet */

@media (max-width:992px){

    .timeline-card h3{
        font-size:22px;
    }

    .timeline-item{
        padding:20px 40px;
    }

}

/* Mobile */

@media (max-width:768px){

    .timeline-section::before{
        left:30px;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right{
        width:100%;
        left:0;
        padding:20px 0 20px 80px;
        transform:none;
    }

    .timeline-item.left .timeline-number,
    .timeline-item.right .timeline-number{
        left:0;
        right:auto;
    }

    .timeline-number{
        width:50px;
        height:50px;
        font-size:16px;
        top:25px;
    }

    .timeline-card{
        padding:20px;
    }

    .timeline-card h3{
        font-size:20px;
    }

    .timeline-card p{
        font-size:14px;
        line-height:1.8;
    }
}
.ceo-section{
    padding:120px 20px;
    display:flex;
    justify-content:center;
}

.ceo-card{
    max-width:900px;
    width:100%;

    background:#fff;
    border-radius:30px;

    padding:60px 50px;

    text-align:center;

    box-shadow:0 20px 60px rgba(0,0,0,.08);

    opacity:0;
    transform:translateY(80px);

    animation:ceoReveal 1.2s ease forwards;
}

.ceo-image{
    margin-bottom:25px;
}

.ceo-image img{
    width:220px;
    height:220px;

    object-fit:cover;

    border-radius:50%;

    border:6px solid #6e8d3b;

    transition:.5s;
}

.ceo-card:hover .ceo-image img{
    transform:scale(1.05);
}

.ceo-name{
    font-size:42px;
    font-weight:700;
    color:#6e8d3b;
    margin-bottom:10px;
}

.ceo-title{
    display:block;

    font-size:18px;
    font-weight:600;

    letter-spacing:2px;
    text-transform:uppercase;

    color:#6e8d3b;

    margin-bottom:35px;
}

.ceo-message{
    position:relative;
}

.ceo-message::before{
    content:"❝";
    font-size:90px;
    color:#6e8d3b;
    opacity:.15;

    position:absolute;
    top:-40px;
    left:50%;
    transform:translateX(-50%);
}

.ceo-message p{
    font-size:20px;
    line-height:2;
    color:#6e8d3b;
    font-style:italic;
}

@keyframes ceoReveal{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:768px){

    .ceo-card{
        padding:40px 25px;
    }

    .ceo-image img{
        width:160px;
        height:160px;
    }

    .ceo-name{
        font-size:30px;
    }

    .ceo-message p{
        font-size:17px;
    }
}

.map-container{
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
    border: 1px solid rgba(0,0,0,.08);
}

.map-container iframe{
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}
/*** Footer Start ***/
.footer{
    background:#ffffff !important;
}

.footer .footer-item a.text-body:hover{
    color:#6e8d3b !important;
}
/*** Footer End ***/

.hero-logo img{
    max-width:220px;
    width:100%;
    height:auto;
    filter:drop-shadow(0 5px 15px rgba(0,0,0,.3));
}




