/*
  Theme Name: Molham
  Author: Moez Tech
*/

/* ******************************************************************************* */

/* *********************************** VARIABLES ********************************* */

/* ******************************************************************************* */

:root {
    --primary-color: #ca4504;
    --secondary-color: #c0b79a;
    --accent-color: #beb699;
    --dark-color: #2a1124;
    --light-color: #ffffff;
    --text-color: #333;
    --body-bg: #f8f9fa;
    --font-family: 'Tajawal', sans-serif;
}

/* ******************************************************************************* */

/* ********************************* GLOBAL STYLES ******************************* */

/* ******************************************************************************* */

.error-text {
    color: #dc3545;
    font-size: 13px;
}

input:invalid,
textarea:invalid {
    border-color: #dc3545;
}

input:valid,
textarea:valid {
    border-color: #28a745;
}

/* Screen Reader Only Class for SEO */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--body-bg);
    color: var(--text-color);
    /* overflow-x: clip avoids breaking position: sticky in the gallery */
    overflow-x: clip;
    width: 100%;
    position: relative;
    direction: rtl;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

p {
    line-height: 1.8;
    color: #555;
}

.section-title {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
    transition: letter-spacing 0.4s ease;
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0;
}

.partners-section .section-subtitle {
    color: var(--primary-color);
    /* تم تغيير اللون ليكون بلون الهوية الأساسي */
}

.about-box .section-title.about-title {
    color: var(--light-color);
    margin-bottom: 0;
}

section:hover .section-title {
    letter-spacing: 1px;
}

.section-icon {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s ease;
    margin-inline-end: 1rem;
}

section:hover .section-icon {
    transform: rotate(10deg);
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    cursor: default;
}

.about-box .highlight:hover,
.manager-box .highlight:hover {
    color: var(--light-color);
    text-shadow: 0 0 8px var(--secondary-color), 0 0 12px var(--secondary-color);
}

/* ******************************************************************************* */

/* *********************************** HEADER ************************************ */

/* ******************************************************************************* */

.main-header.fixed-top {
    top: 20px;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: 90% !important;
    max-width: 1140px;
    background-color: rgba(42, 17, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32.5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: none !important;
    z-index: 1000;
}

@media (max-width: 991px) {
    .main-header.fixed-top {
        top: 10px;
        left: 3%;
        right: 3%;
        width: 94%;
        border-radius: 20px;
    }
}

.main-header .navbar {
    padding: 0.5rem;
}

.main-header .navbar-brand img {
    height: 60px;
    /* Adjusted for new padding */
    transition: transform 0.3s ease;
}

.main-header .navbar-brand:hover img {
    transform: scale(1.05);
}

.main-header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 20px;
}

.main-header .navbar-nav .nav-link::after {
    display: none;
    /* Removed underline effect */
}

.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--secondary-color);
}

.custom-service-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
    font-weight: 700;
    transition: all 0.3s ease;
}

.custom-service-btn:hover {
    background-color: var(--light-color);
    border-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-header .dropdown-menu {
    background-color: rgba(42, 17, 36, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    min-width: 180px;
}

.main-header .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.main-header .dropdown-menu .dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 10px;
}

.main-header .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    /* تعديل المسافة */
}

/* تحسين الانتقال */

.main-header .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.main-header .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ******************************************************************************* */

/* *********************************** WELCOME SECTION *************************** */

/* ******************************************************************************* */

.welcome-section {
    position: relative;
    width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: linear-gradient(145deg, var(--primary-color), #2a1124);
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

#spaceCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-height: 280px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(202, 69, 4, 0.5));
    transition: transform 0.5s ease;
    margin-bottom: 2rem;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
}

.hero-subtitle {
    max-width: 850px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-logo {
        max-height: 140px;
    }

    .welcome-section {
        min-height: 100vh !important;
        /* Full height on mobile */
    }

    .hero-content {
        padding: 1.5rem;
    }
}

/* ******************************************************************************* */

/* *********************************** ABOUT SECTION ***************************** */

/* ******************************************************************************* */

#about-muzallat {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.about-box,
.manager-box {
    background: linear-gradient(145deg, var(--primary-color), #4a2d45);
    color: var(--light-color);
    padding: 3rem 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    /* To contain the pseudo-element */
}

/* Change: New animated space background with multiple layers */

@keyframes space-effect {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%;
    }

    100% {
        background-position: -1000px 500px, -800px 300px, -600px 400px;
    }
}

.about-box::before,
.manager-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layered background for a richer space effect */
    background-image:
        /* Layer 1: Small white stars */
        radial-gradient(1px 1px at 20px 30px, white, rgba(255, 255, 255, 0)), radial-gradient(1px 1px at 40px 70px, white, rgba(255, 255, 255, 0)), radial-gradient(1.5px 1.5px at 50px 160px, white, rgba(255, 255, 255, 0)),
        /* Layer 2: Secondary color stars */
        radial-gradient(1.5px 1.5px at 90px 40px, var(--secondary-color), rgba(192, 183, 154, 0)), radial-gradient(2px 2px at 130px 80px, var(--secondary-color), rgba(192, 183, 154, 0)), radial-gradient(1.5px 1.5px at 160px 120px, white, rgba(255, 255, 255, 0)),
        /* Layer 3: Larger glowing stars */
        radial-gradient(2.5px 2.5px at 10px 200px, white, rgba(255, 255, 255, 0)), radial-gradient(2.5px 2.5px at 180px 180px, var(--secondary-color), rgba(192, 183, 154, 0));
    background-repeat: repeat;
    background-size: 200px 200px, 150px 150px, 250px 250px;
    /* Different sizes for parallax */
    animation: space-effect 45s linear infinite;
    z-index: 1;
    /* Behind the content */
    opacity: 0.4;
    /* Increased opacity for more visibility */
}

/* Ensure content is above the new background */

.about-box>.container,
.manager-box>.container {
    position: relative;
    z-index: 2;
}

.about-box {
    margin-bottom: 2rem;
}

.about-box:hover,
.manager-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(92, 58, 86, 0.3);
}

.about-box .section-title {
    color: var(--light-color);
}

.about-box .section-title .highlight {
    color: var(--secondary-color);
}

.about-box p,
.manager-box p {
    color: rgba(255, 255, 255, 0.85);
}

/* Text animation inside about section */

#about-molham [data-aos] p,
#about-molham [data-aos] h2,
#about-molham [data-aos] h5,
#about-molham [data-aos] .vertical-line {
    transition-property: opacity, transform;
}

.logo-about-container {
    perspective: 1000px;
}

.logo-about {
    max-width: 120px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.manager-photo-container {
    perspective: 1000px;
}

.manager-photo {
    border-radius: 15px;
    /* تم تعليق إطار الصورة فقط بناءً على الطلب */
    /* border: 5px solid var(--secondary-color); */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 200px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vertical-line {
    width: 4px;
    height: 50px;
    background-color: var(--secondary-color);
    margin-inline-end: 15px;
    border-radius: 2px;
}

/* ******************************************************************************* */

/* ********************************* SERVICES SECTION **************************** */

/* ******************************************************************************* */

.services-section {
    background-color: var(--body-bg);
    position: relative;
    padding-bottom: 5rem;
}

.service-card {
    background-color: var(--light-color);
    padding: 1.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 576px) {
    .service-card {
        padding: 1rem 0.5rem;
    }

    .service-card .icon-box {
        width: 60px;
        height: 60px;
    }

    .service-card .icon-box i {
        font-size: 1.5rem !important;
    }

    .service-card h5 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .service-card p {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-clamp: 3;
        overflow: hidden;
    }
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(202, 69, 4, 0.2);
    border-color: var(--primary-color);
}

.service-card .icon-box {
    width: 90px;
    height: 90px;
    background-color: rgba(202, 69, 4, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .icon-box {
    background-color: var(--primary-color);
    transform: rotateY(180deg);
}

.service-card:hover .icon-box i {
    color: var(--light-color) !important;
}

.service-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.color-primary {
    color: var(--primary-color) !important;
}

.intro-box {
    transition: transform 0.3s ease;
}

.intro-box:hover {
    transform: scale(1.01);
}

/* ******************************************************************************* */

/* ********************************* PARTNERS SECTION **************************** */

/* ******************************************************************************* */

.partners-section {
    padding: 3rem 0;
    background-color: var(--secondary-color);
    /* CSS Variables for dynamic control */
    --slide-w: 170px;
    --slide-pad: 24px;
    --logo-count: 20;
    /* Default value, will be updated by JS */
    --loop-distance: calc(var(--logo-count) * (var(--slide-w) + var(--slide-pad)));
    --animation-duration: calc(var(--logo-count) * 3.5s);
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partner-track {
    display: flex;
    width: fit-content;
    /* Let the width be determined by its content */
    animation: scroll-rtl var(--animation-duration) linear infinite;
}

/* Pause animation on hover for devices that support it */

@media (hover: hover) {
    .partner-track:hover {
        animation-play-state: paused;
    }
}

@keyframes scroll-rtl {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--loop-distance));
    }

    /* موجب = يمين */
}

.partner-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--slide-w);
    padding: 0 calc(var(--slide-pad) / 2);
    box-sizing: border-box;
    flex-shrink: 0;
    /* Prevent slides from shrinking */
}

.partner-slide img {
    height: 130px;
    width: 130px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.partner-slide:hover img {
    transform: scale(1.1);
}

/* ******************************************************************************* */

/* *********************************** FOOTER ************************************ */

/* ******************************************************************************* */

.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 5rem;
}

.footer-heading {
    color: var(--light-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer .contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer .contact-info i {
    color: var(--secondary-color);
}

.footer-logo {
    max-width: 120px;
}

.social-links a {
    color: var(--light-color);
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.brand-text {
    color: var(--secondary-color);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease, padding-right 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-color);
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer-bottom p {
    color: var(--light-color);
    font-weight: 500;
    margin-bottom: 0;
}

قسم تواصل معنا .contact-section {
    background-color: var(--body-bg);
    color: var(--text-color);
}

/*.section-title {*/

/*  color: var(--primary-color);*/

/*  font-weight: 700;*/

/*  position: relative;*/

/*}*/

/*.section-title::after {*/

/*  content: '';*/

/*  position: absolute;*/

/*  bottom: -5px;*/

/*  right: 50%;*/

/*  transform: translateX(50%);*/

/*  width: 60px;*/

/*  height: 3px;*/

/*  background-color: var(--secondary-color);*/

/*  border-radius: 2px;*/

/*}*/

.contact-form {
    background-color: #fff;
    border: 1px solid rgba(92, 58, 86, 0.2);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form .form-control {
    border: 1px solid rgba(92, 58, 86, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: var(--font-family);
}

.contact-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(192, 183, 154, 0.5);
}

.main-header {
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.main-header.scrolled {
    background: rgba(42, 17, 36, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 0.2rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header .navbar-brand img {
    height: 50px;
    transition: height 0.4s ease;
}

.main-header.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
}

.contact-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: none;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ******************************************************************************* */

/* ********************************** WORKS SECTION (ULTIMATE PREMIUM) *********** */

/* ******************************************************************************* */

.works-section {
    background: #0b0b0b;
    color: white;
    padding: 100px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 24px;
}

.work-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}

/* Asymmetrical Spans */
.work-item-lg {
    grid-column: span 8;
    height: 500px;
}

.work-item-sm {
    grid-column: span 4;
    height: 500px;
}

.work-item-md {
    grid-column: span 6;
    height: 400px;
}

@media (max-width: 991px) {

    .work-item-lg,
    .work-item-sm,
    .work-item-md {
        grid-column: span 12;
        height: 350px;
    }
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-meta {
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.work-item:hover .work-meta {
    transform: translateY(0);
}

.work-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.work-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}

/* ******************************************************************************* */

/* ********************************** BLOG SECTION (PREMIUM MODERN) ************** */

/* ******************************************************************************* */

.blog-premium-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
    transition: all 0.5s ease;
}

.blog-premium-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.mobile-nav {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 65px;
    background-color: rgba(42, 17, 36, 0.85);
    /* Darker background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-radius: 32.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-header {
    background: rgba(42, 17, 36, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    /* Lighter default color */
    transition: color 0.3s ease;
    position: relative;
    width: 60px;
    height: 60px;
    z-index: 2;
}

.mobile-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

/* Background circle for the active item */

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-item.active::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Dropdown mobile */

.dropdown-mobile {
    position: relative;
    cursor: pointer;
}

.dropdown-mobile-menu {
    position: absolute;
    bottom: 70px;
    /* فوق الشريط */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(42, 17, 36, 0.95);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    min-width: 120px;
    z-index: 1001;
}

.dropdown-mobile-menu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-mobile-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 10px;
}

/* Show dropdown on click */

.dropdown-mobile.active .dropdown-mobile-menu {
    display: flex;
}

/* ******************************************************************************* */

/* ********************************* RESPONSIVENESS ****************************** */

/* ******************************************************************************* */

@media (max-width: 991.98px) {
    body {
        padding-bottom: 100px;
    }

    .about-box,
    .manager-box {
        padding-top: 2rem;
        padding-bottom: 2rem;
        text-align: center;
        border-radius: 20px;
        margin: 0 1rem 2rem 1rem;
    }

    .about-box:hover,
    .manager-box:hover {
        transform: translateY(-12px) scale(1.02);
    }

    .manager-section .d-flex.align-items-center {
        justify-content: center !important;
    }

    .manager-box .col-lg-9 {
        text-align: center;
    }

    .manager-photo-container {
        margin: 0 auto 1.5rem;
    }
}

@media (min-width: 992px) {

    .about-box,
    .manager-box {
        border-radius: 25px;
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-icon {
        width: 50px;
        height: 50px;
    }

    .service-card h5 {
        font-size: 1rem;
    }

    .partners-container {
        padding: 1.5rem;
    }

    .partners-section {
        --slide-w: 150px;
        --slide-pad: 20px;
    }

    .partner-slide img {
        height: 100px;
        width: 100px;
    }
}

/* ******************************************************************************* */
/* **************************** FINAL PREMIUM OVERRIDES ************************** */
/* ******************************************************************************* */

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.4s ease !important;
    color: white !important;
}

.btn-outline-light:hover {
    background: white !important;
    color: #2a1124 !important;
    transform: translateY(-5px) !important;
}

.navbar-brand img {
    height: 55px;
    /* Forced slim height for premium feel */
}

@media (max-width: 991px) {
    .navbar-brand img {
        height: 45px;
    }
}

/* ******************************************************************************* */
/* **************************** PREMIUM WORKS SECTION *************************** */
/* ******************************************************************************* */

.news-mini-card h4 {
    transition: color 0.3s ease;
}

.footer-logo {
    height: 120px;
    /* Doubled size for impact */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.footer-desc {
    max-width: 500px;
    line-height: 1.6;
    border-right: 3px solid var(--primary-color);
    padding-right: 20px;
    font-weight: 500;
}

/* ============================================================ */
/* ===== PREMIUM 360° WORKS GALLERY — Swiper 3D ============== */
/* ============================================================ */

.works-section-premium {
    position: relative;
    background: transparent;
    margin-top: 150px;
    padding: 0;
    overflow: visible;
    width: 100%;
    z-index: 5;
}

@media (min-width: 992px) {
    .works-section-premium {
        min-height: calc(100vh + 5000px);
        /* Perfectly matched to desktop pinning distance */
    }
}

.works-sticky-scene {
    position: relative;
    /* Let GSAP handle pinning via pin:true to avoid conflicts */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    /* Prevent clipping of rounded corners and shadows */
}

.works-card-box-new {
    position: relative;
    background: linear-gradient(145deg, var(--primary-color), #2a1124);
    border-radius: 80px;
    /* More pronounced rounded edges */
    padding: 60px 20px 40px;
    /* Slightly more compact vertically */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 1650px;
}

/* Animated space effect restored inside the card */
.works-card-box-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(192, 183, 154, 0.2), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.2), transparent);
    background-size: 500px 500px;
    animation: space-effect 120s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

.works-inner {
    position: relative;
    z-index: 2;
}

/* ── Title Redesign ───────────────────────────────────────── */
.works-title-wrap {
    text-align: center;
    margin-bottom: 30px;
    /* Save vertical space */
    padding-top: 10px;
}

.works-main-title {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 800;
    color: #fff;
    /* White for dark background depth */
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.works-title-line {
    width: 100px;
    height: 5px;
    background: var(--secondary-color);
    margin: 0 auto 25px;
    border-radius: 10px;
}

.works-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}


/* Star-field removed as it was part of the double background confusion */

/* ── Swiper Core ──────────────────────────────────────────── */
.worksSwiper {
    width: 100%;
    padding: 20px 0 60px !important;
}

.worksSwiper .swiper-slide {
    width: clamp(240px, 36vw, 400px);
    height: clamp(340px, 50vw, 550px);
    /* More compact vertically */
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.worksSwiper .swiper-slide-active {
    box-shadow: 0 30px 100px rgba(202, 69, 4, 0.5), 0 0 0 2px rgba(192, 183, 154, 0.4);
}

.slide-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.worksSwiper .swiper-slide:hover .slide-img {
    transform: scale(1.06);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 24px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.worksSwiper .swiper-slide:hover .slide-overlay,
.worksSwiper .swiper-slide-active .slide-overlay {
    opacity: 1;
}

.slide-overlay span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* ── Swiper Pagination ────────────────────────────────────── */
.worksSwiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.worksSwiper .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    width: 28px;
    border-radius: 4px;
}

/* ── Swiper Navigation Arrows (Mobile Only) ───────────────── */
.works-nav-next, .works-nav-prev {
    color: var(--secondary-color) !important;
    background: rgba(42, 17, 36, 0.6);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex !important;
    z-index: 50 !important;
}

.works-nav-next::after, .works-nav-prev::after {
    font-size: 1.2rem !important;
    font-weight: 900;
}

.works-nav-next:hover, .works-nav-prev:hover {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
}

/* Hide navigation on desktop as it relies on scroll */
@media (min-width: 992px) {
    .works-nav-next, .works-nav-prev {
        display: none !important;
    }
}

/* ── Mobile Optimization for Tall (Portrait) Photo Cards ── */
@media (max-width: 767px) {
    .works-section-premium {
        min-height: auto !important;
        padding-bottom: 60px !important;
        margin-top: 80px !important;
    }

    .works-card-box-new {
        border-radius: 40px;
        /* Slightly smaller for mobile edges */
        padding: 40px 15px 30px;
    }

    .worksSwiper .swiper-slide {
        width: 260px !important;
        height: 440px !important;
        /* Distinct tall portrait ratio */
    }

    .works-main-title {
        font-size: 1.8rem !important;
    }
}

/* ── Scroll Hint ──────────────────────────────────────────── */
.scroll-hint {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scroll-arrow {
    animation: bounceDown 1.5s infinite ease-in-out;
    font-size: 1.1rem;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .works-section-premium {
        padding: 50px 0 70px;
    }

    .works-card-box {
        border-radius: 20px;
        padding: 40px 0 40px;
    }

    .works-main-title {
        font-size: 2rem;
    }

    .worksSwiper .swiper-slide {
        width: 80vw;
        height: 65vw;
        min-height: 260px;
    }

    .slide-overlay {
        opacity: 1;
    }
}

/* -- Card Box ---------------------------------------------- */
.works-card-box {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 36px;
    padding: 60px 0 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.works-card-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(192, 183, 154, 0.6), transparent),
        radial-gradient(1px 1px at 50% 60%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(192, 183, 154, 0.4), transparent);
    background-size: 300px 200px;
    background-repeat: repeat;
    animation: space-effect 60s linear infinite;
    opacity: 0.4;
    pointer-events: none;
}

.works-view-btn {
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.works-view-btn:hover {
    transform: translateY(-5px);
    letter-spacing: 1px;
}

/* Fix for News Section Overlap */
#latest-updates {
    position: relative;
    z-index: 20;
    background-color: #f8f9fa;
}