/********** Template CSS **********/

@font-face {
    font-family: "DIN-REGULAR";
    src: url("../Fonts/DIN\ NEXT™\ ARABIC\ REGULAR.otf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "DIN-REGULAR", sans-serif !important;
}


form {
    color: #000000 !important;
}

p {
    color: white;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
    border-radius: 50px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: inherit;
}

.btn-Burnt {
    color: var(--bs-white);
}


/*** Navbar ***/




.navbar-brand {
    height: 80px;
}

.navbar-brand img {
    height: 56%;
    width: auto;
    transform: translateY(12px);
}


.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
}


.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    color: var(--bs-white);
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-Burnt);
}

@media (max-width: 991.98px) {

    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
        margin: -1px 55px;

    }

    .navbar {
        margin-top: 0px;
        padding: 40px 40px;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }
}

@media (min-width: 992px) {


    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 550px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 200px;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-1.jpg) top center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}

.breadcrumb-item {
    margin-left: 25px;
    font-weight: 300;
}

/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 1px solid var(--bs-white);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 1px solid var(--bs-white);
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, .5);
    border-radius: 300px;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, #141414, #042d2600);
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, #141414, #042d2600);
}

@media (max-width: 767.98px) {

    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, #141414, #042d2600);
        text-align: center;
    }

}


/*** Team ***/
.team-item {
    position: relative;
}

.team-item .team-name {
    position: absolute;
    width: 100%;
    height: 60px;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .7);
}

.team-item .team-body {
    position: relative;
    overflow: hidden;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .5s;
}

.team-item .team-body .team-after {
    left: auto;
    right: 0;
}

.team-item .team-body .team-before {
    text-align: right;
}

.team-item:hover .team-body .team-before,
.team-item:hover .team-body .team-after {
    width: 50%;
}

.team-item .team-body .team-before span,
.team-item .team-body .team-after span {
    margin: 5px;
    color: var(--bs-white);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-body .team-before span,
.team-item:hover .team-body .team-after span {
    opacity: 1;
    transition-delay: .2s;
}



/* ===========================
   Contact Section
   =========================== */

.contact-section {
    background: linear-gradient(rgba(4, 46, 38, 0.575), rgba(4, 46, 38, 0.575)),
        url('../img/bg-contact-us.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    margin: 50px;
    max-width: 500px;
    width: 90%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}


.contact-subtitle {
    font-size: 14px;
    color: var(--bs-white);
    margin-bottom: 25px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 14px;
    transition: border 0.3s ease, box-shadow 0.3s ease;

}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

.contact-button {
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}


.contact-section .container {
    max-width: 600px;
    margin: auto;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--bs-Burnt);
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-section input,
.contact-section textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

.contact-section button {
    padding: 12px;
    background-color: var(--bs-Burnt);
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.contact-section button:hover {
    background-color: #853d1e;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -1000px 0;
    }
}

.footer {
    background-image: url(../img/footer-bg.png);
    background-position: 0px 0px;
    background-repeat: repeat-x;
    animation: footerAnimatedBg 50s linear infinite;
}

.footer-logo {
    height: 80px;
    width: auto;
}

.footer-contact p {
    margin: 0 0 10px;
    color: #ccc;
    font-size: 15px;
}

.footer-contact i {
    color: #db9e0f;
    margin-left: 6px;
}




/* ===============================
   Fix layout for very small screens (320px - 380px)
   =============================== */
@media (max-width: 460px) {


    /* إصلاح النافبار */

    .navbar {
        padding: 20px !important;
    }

    .navbar-brand {
        height: 60px !important;
    }

    .navbar-brand img {
        height: 28px !important;
        transform: translateY(5px);
    }

    .navbar .navbar-nav .nav-link {
        margin: 0 !important;
        padding: 10px 0 !important;
        font-size: 14px !important;
    }

    /* إصلاح الـ margins اللي بتعمل overflow */
    .navbar .navbar-nav .nav-link {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* جعل كل شيء يحتفظ بعرض الشاشة فقط */
    body,
    html {
        overflow-x: hidden !important;
    }

    * {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* الكروسل في الهيدر */
    #header-carousel .carousel-item {
        min-height: 420px !important;
    }

    /* تصغير الأزرار */
    .btn {
        padding: 8px 18px !important;
        font-size: 14px !important;
    }

    /* Fix contact form */
    .contact-form-wrapper {
        margin: 20px 10px !important;
        padding: 20px !important;
    }

    h1,
    h2 {
        margin-top: 17px;
        margin-bottom: 40px;
    }

    /* تصغير هوامش السكاشن */
    .title h1 {
        font-size: 22px !important;
    }

    .title h5 {
        font-size: 14px !important;
        transform: translateY(-7px);
    }

    .back-to-top {
        transform: translate(30px, 30px);
    }

    .back-to-top-i {
        transform: translate(3px, 0px);
    }

    .footer-logo {
        height: 47px;
    }
}





/* ==========================
   Gallery Section
========================== */
.gallery-title {
    font-size: 2rem;
    font-weight: bold;
    color: #db9e0f;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.gallery-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #db9e0f;
    padding: 5px;
    box-sizing: border-box;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

/* Zoom icon on hover */
.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    user-select: none;
}

.img-wrapper:hover .zoom-icon {
    opacity: 1;
    pointer-events: auto;
}

/* Image zoom effect */
.img-wrapper:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================
   Profile Section
========================== */
.profile-body {
    background: #1C6582 url('../assets/images/pattern-1.png') repeat !important;
}

/* Row styling */
.row {
    border: 20px rgb(255, 255, 255) !important;
}

/* ==========================
   Buttons
========================== */
.btn-home {
    background-color: #00bcd4;
}

.btn-home:hover {
    background-color: #1C6582;
    color: #ffffff;
}