:root {
    --wm-red: #A52A2A;
    --wm-red-dark: #7A1F1F;
    --wm-blue: #2A52A5;
    --wm-blue-dark: #1F3C7A;
    --wm-dark-gray: #212529;
    --wm-light-gray: #f8f9fa;
    --wm-body-text: #555;
    --wm-white: #ffffff;
    --wm-font: 'Jost', sans-serif;
    --header-height: 70px;
    --border-color: #eeeeee;
    /* Added for consistency */
    --text-light: #777;
    /* Added for consistency */
    --primary-accent-light: #fbe9e9;
    /* Added for consistency */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--wm-font);
    color: var(--wm-body-text);
    background-color: var(--wm-white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    overflow: hidden;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--wm-dark-gray);
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--wm-body-text);
    max-width: 700px;
    margin: 0 auto 50px auto;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--wm-red);
    color: var(--wm-white);
    box-shadow: 0 4px 15px rgba(165, 42, 42, 0.4);
}

.btn-primary:hover {
    background-color: var(--wm-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(165, 42, 42, 0.5);
}


/* =================================================================
   1. ✅ NEW HERO SECTION DESIGN V2 - PROFESSIONAL & CIVILIZED
================================================================= */
#hero-new {
    height: 100vh;
    min-height: 800px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--wm-white);
    text-align: center;
    background: url('/assets/images/hero-background-riyadh.webp') center center/cover no-repeat;
    background-color: #1a1a2e;
}

#hero-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 20, 0.8) 0%, rgba(10, 10, 20, 0.3) 100%);
    z-index: 1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content-new {
    position: relative;
    z-index: 3;
    max-width: 850px;
    padding: 20px;
    animation: fadeInContent 1.2s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo-container {
    margin-bottom: 1.5rem;
}

.hero-logo-image {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.hero-company-name {
    font-family: 'Jost', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
    animation: fadeInDown 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-main-slogan {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    margin-top: 1.5rem;
    letter-spacing: 1.5px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}

.hero-sub-slogan {
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.hero-cta-button {
    margin-top: 3rem;
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--wm-white);
    border: 2px solid var(--wm-white);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-cta-button:hover {
    background-color: var(--wm-white);
    color: var(--wm-dark-gray);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-down-indicator a {
    color: var(--wm-white);
    font-size: 2.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-down-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* =================================================================
   2. CORE VALUES SECTION
================================================================= */
.value-item .icon {
    font-size: 3rem;
    color: var(--wm-red);
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wm-dark-gray);
    margin-bottom: 10px;
}

/* =================================================================
   3. MARKETS & PRODUCTS CARD STYLE (UNIFIED)
================================================================= */
.markets-section {
    background-color: var(--wm-light-gray);
}

.market-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 450px;
    position: relative;
    text-decoration: none;
    display: block;
    border: 1px solid transparent;
}

.market-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--wm-red);
}

.market-card .card-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.market-card:hover .card-bg-image {
    transform: scale(1.1);
}

.market-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.1) 100%);
    color: var(--wm-white);
    z-index: 2;
}

.market-card .card-title {
    font-size: 2rem;
    line-height: 1.2;
    color: var(--wm-white);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.market-card .card-link {
    color: var(--wm-white);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s 0.1s ease-in-out;
}

.market-card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
}

.market-card .card-link i {
    transition: transform 0.3s ease;
}

.market-card:hover .card-link i {
    transform: translateX(6px);
}

/* =================================================================
   5. BRAND LOGOS CAROUSEL
================================================================= */
.brand-carousel-section {
    background-color: var(--wm-light-gray);
}

.brand-swiper {
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brand-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-swiper .brand-logo {
    max-width: 160px;
    height: 70px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.brand-swiper .swiper-slide:hover .brand-logo {
    transform: scale(1.05);
    opacity: 0.85;
}

/* =================================================================
   6. PROJECT SHOWCASE SLIDER
================================================================= */
#showcase-slider {
    background-color: var(--wm-white);
    position: relative;
}

.showcase-swiper {
    width: 100%;
    height: 550px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.showcase-swiper .swiper-slide {
    position: relative;
    color: var(--wm-white);
    display: flex;
    align-items: flex-end;
    padding: 50px;
    overflow: hidden;
}

.showcase-swiper .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.showcase-swiper .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.showcase-swiper .slide-text {
    position: relative;
    z-index: 3;
    max-width: 600px;
    width: 100%;
}

.showcase-swiper .slide-text .tagline {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--wm-red);
    color: var(--wm-white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 15px;
}

.showcase-swiper .slide-text h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--wm-white);
}

.showcase-swiper .btn-slide {
    background-color: var(--wm-white);
    color: var(--wm-red);
}

.showcase-swiper .btn-slide:hover {
    background-color: #f0f0f0;
    color: var(--wm-red-dark);
}

.swiper-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--wm-red);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-nav-button:hover {
    background-color: var(--wm-red);
    color: var(--wm-white);
}

.swiper-button-prev.swiper-nav-button {
    left: 20px;
}

.swiper-button-next.swiper-nav-button {
    right: 20px;
}

/* =================================================================
   7. TESTIMONIALS SECTION STYLES
================================================================= */
.testimonials-section {
    background-color: var(--wm-light-gray);
}

.testimonial-card {
    background-color: var(--wm-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.testimonial-card .testimonial-logo {
    height: 50px;
    margin-bottom: 20px;
}

.testimonial-card .testimonial-logo img {
    max-height: 100%;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
}

.testimonial-card .testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--wm-body-text);
    flex-grow: 1;
    margin-bottom: 20px;
}

.testimonial-card .testimonial-author .author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wm-dark-gray);
    margin-bottom: 0;
}

.testimonial-card .testimonial-author .author-title {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =================================================================
   8. NEWS & INSIGHTS SECTION STYLES
================================================================= */
.news-section {
    background-color: var(--wm-white);
}

.blog-card {
    background: var(--wm-white);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-img-wrapper {
    display: block;
    height: 220px;
    overflow: hidden;
}

.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img-wrapper img {
    transform: scale(1.08);
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.blog-card-category {
    background-color: var(--primary-accent-light);
    color: var(--wm-red);
    padding: 3px 12px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.blog-card-category:hover {
    background-color: var(--wm-red);
    color: var(--wm-white);
}

.blog-card-date {
    color: var(--text-light);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--wm-dark-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: var(--wm-red);
}

.blog-card-excerpt {
    color: var(--wm-body-text);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* =================================================================
   9. LOCATION SECTION
================================================================= */
.location-section {
    background-color: var(--wm-light-gray);
}

.location-card-redesigned {
    background: var(--wm-white);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.location-map-wrapper-redesigned {
    height: 500px;
}

.location-details {
    padding: 40px 50px;
}

.section-title-left {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--wm-dark-gray);
    margin-bottom: 15px;
    text-align: left;
}

.section-subtitle-left {
    font-size: 1.1rem;
    color: var(--wm-body-text);
    text-align: left;
    margin-bottom: 30px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-list li i {
    font-size: 1.2rem;
    color: var(--wm-red);
    margin-top: 5px;
    margin-right: 20px;
    width: 20px;
    text-align: center;
}

.contact-info-list li div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-info-list li strong {
    font-weight: 600;
    color: var(--wm-dark-gray);
    margin-bottom: 2px;
}

.contact-info-list li span {
    color: var(--wm-body-text);
    line-height: 1.6;
}

/* =================================================================
   10. STATS SECTION
================================================================= */
.stats-section {
    background-color: var(--wm-white);
}

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--wm-red);
}

.stat-item .stat-title {
    font-size: 1.1rem;
    color: var(--wm-dark-gray);
    margin-top: 10px;
}

/* =================================================================
   11. CTA (CALL TO ACTION)
================================================================= */
.cta-section {
    position: relative;
    color: var(--wm-white);
    padding: 100px 0;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(165, 42, 42, 0.88);
    z-index: 2;
}

.cta-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.cta-content .section-title,
.cta-content .section-subtitle {
    color: var(--wm-white);
}

.btn-cta {
    background-color: var(--wm-white);
    color: var(--wm-red);
}

.btn-cta:hover {
    background-color: #f0f0f0;
    color: var(--wm-red-dark);
    transform: translateY(-3px);
}

/* =================================================================
   12. BACK TO TOP BUTTON
================================================================= */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--wm-red);
    color: var(--wm-white);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
    text-decoration: none;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =================================================================
   13. RESPONSIVE DESIGN
================================================================= */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 992px) {
    .hero-content-new {
        padding: 30px;
    }
}

/* Responsive adjustment for Location Section on Tablets */
@media (max-width: 991px) {
    .location-map-wrapper-redesigned {
        height: 350px;
    }

    .location-details {
        padding: 30px;
    }
}

/* Small devices (landscape phones, 768px and down) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    #hero-new {
        min-height: unset;
        height: 90vh;
        animation: ken-burns 20s infinite;
    }

    @keyframes ken-burns {
        0% {
            background-size: 100% 100%;
        }

        50% {
            background-size: 110% 110%;
            background-position: center center;
        }

        100% {
            background-size: 100% 100%;
        }
    }

    .showcase-swiper .swiper-slide {
        padding: 30px;
    }

    .swiper-nav-button {
        display: none;
    }

    .testimonial-card,
    .blog-card,
    .market-card {
        margin-bottom: 2rem;
    }

    .g-4 {
        /* Reduce gutter spacing on mobile */
        --bs-gutter-x: 1.5rem;
    }
}

/* =================================================================
   STYLES FOR THE NEW INTEGRATED LOGO-TEXT
================================================================= */

/* This is the main container for the new text logo */
.hero-company-name {
    display: flex;
    /* Aligns text and images on the same line */
    align-items: center;
    /* Vertically centers the items */
    justify-content: center;
    /* Horizontally centers the whole title */
    font-family: 'Jost', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    /* Responsive font size */
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
    animation: fadeInDown 1.5s ease-out forwards;
    opacity: 0;
}

/* This styles the W and M logo parts */
.hero-logo-part {
    height: 0.9em;
    width: auto;
    display: inline-block;
    /* زدنا القيمة بشكل أكبر لرفعهما بشكل ملحوظ */
    margin-bottom: 0em;
}

/* This adds a small space between "White" and "Meteors" */
.name-spacer {
    width: 0.4em;
    /* Adjust this value for more or less space */
}

/* Ensure the hero content text alignment is still correct */
.hero-content-new {
    text-align: center;
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-company-name {
        /* You can adjust letter-spacing or other properties for mobile if needed */
        letter-spacing: 1px;
    }
}

/* Keyframes (already in your file, just for context) */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}