.core-values-section,
.markets-section,
.services-section,
.products-section,
.stats-section,
.brand-carousel-section,
.showcase-section,
.news-section,
.cta-section {
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}

/* Note: Main variables defined in variables.css */
/* This file uses centralized variables 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-color: #1a1a2e;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    pointer-events: none;
    filter: brightness(0.85);
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#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: 10;
    max-width: 850px;
    padding: 20px;
    animation: fadeInContent 1.2s ease-out 0.5s forwards;
    opacity: 0;
    pointer-events: auto;
}

@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);
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 10;
}

.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 {
    display: none !important;
    /* Scroll indicator removed */
}

.scroll-down-indicator a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--wm-white);
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 11;
    /* Animation only affects translateY - parent handles centering */
    animation: bounceArrow 2s infinite ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.scroll-down-indicator a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    /* Keep animation running on hover - just change colors */
}

.scroll-down-indicator a i {
    display: block;
    /* Icon moves with parent animation */
}

/* Unified bounce animation for all devices - only vertical movement */
@keyframes bounceArrow {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: 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);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    position: relative;
    height: 500px; /* Fixed height for all cards */
    background-color: #ffffff;
}

.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: 320px;
    object-fit: contain; /* Preserve aspect ratio, show full image */
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
    flex-shrink: 0; /* Prevent image from shrinking */
    position: relative;
    z-index: 1;
    background-color: #f8f9fa;
    max-width: 100%;
    max-height: 100%;
}

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

.market-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 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);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 180px; /* Fixed minimum height for content area */
    flex-shrink: 0;
}

.market-card .card-title {
    font-size: 1.75rem;
    line-height: 1.3;
    color: var(--wm-white);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    min-height: 2.6em; /* Fixed height for 2 lines (1.3 line-height * 2) */
    max-height: 2.6em;
}

.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 - EPIC DESIGN
================================================================= */
.brand-carousel-section {
    background-color: var(--wm-light-gray);
    position: relative;
    overflow: hidden;
}

/* Ensure brand swiper is visible and scrollable on mobile */
@media (max-width: 991.98px) {
    .brand-swiper {
        overflow: hidden; /* Swiper needs overflow hidden for touch to work */
        padding: 20px 0;
        -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
    }

    .brand-swiper .swiper-wrapper {
        /* Let Swiper handle the wrapper, don't override with flex */
        align-items: center;
    }

    .brand-swiper .swiper-slide {
        flex-shrink: 0;
    }
}

.brand-carousel-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 20% 30%,
            rgba(165, 42, 42, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(165, 42, 42, 0.05) 0%,
            transparent 50%
        );
    pointer-events: none;
    z-index: 1;
}

.brand-carousel-section .container {
    position: relative;
    z-index: 2;
}

.brand-carousel-section .section-title {
    color: var(--wm-dark-gray);
    margin-bottom: 1.5rem;
    position: relative;
}

.brand-carousel-section .section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--wm-red), transparent);
    border-radius: 2px;
}

.brand-swiper {
    width: 100%;
    padding: 40px 0;
    -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
    );
}

.brand-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    min-height: 140px;
    height: auto;
    overflow: visible; /* Prevent clipping of brand logos */
}

.brand-logo-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 28px);
    width: min(280px, 75vw); /* Fixed reasonable width for brand logos */
    min-height: min(140px, 40vw);
    height: auto; /* Allow card to grow with content */
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; /* Prevent logos from overflowing */
}

.brand-logo-card .brand-logo-image {
    display: block;
    width: 100%; /* Use full card width */
    height: auto;
    max-width: 100%; /* Constrain to card width */
    max-height: 160px; /* Reasonable max height for logos */
    object-fit: contain; /* Preserve aspect ratio, show full logo */
    object-position: center;
}

.brand-swiper .swiper-slide:hover .brand-logo-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

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

#showcase-slider .container {
    position: relative; /* Ensure container is positioned for absolute buttons */
}

.showcase-swiper-wrapper {
    position: relative;
    width: 100%;
}

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

.showcase-swiper .swiper-wrapper {
    height: 100%;
    width: 100%;
}

.showcase-swiper .swiper-slide {
    position: relative;
    color: var(--wm-white);
    display: flex;
    align-items: flex-end;
    padding: 50px;
    overflow: hidden;
    height: 100%;
    width: 100%;
    background-color: #ffffff; /* White background for slides */
}

.showcase-swiper .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Preserve aspect ratio, show full image like admin */
    object-position: center;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
}

.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;
    pointer-events: none; /* Allow clicks to pass through to buttons and links */
}

.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);
}

.showcase-swiper-wrapper .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) !important; /* Force red color for brand identity */
    border-radius: 50%;
    z-index: 1000 !important; /* Very high z-index to be above everything */
    cursor: pointer;
    display: flex !important;
    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;
    pointer-events: auto !important; /* Ensure buttons are clickable */
    touch-action: manipulation !important; /* Improve touch responsiveness on mobile */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    user-select: none; /* Prevent text selection */
}

.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) !important;
    border-radius: 50%;
    z-index: 1000 !important;
    cursor: pointer;
    display: flex !important;
    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;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.swiper-nav-button i {
    color: var(--wm-red) !important; /* Ensure icon is red */
}

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

.swiper-nav-button:hover i {
    color: var(--wm-white) !important;
}

/* Override Swiper default blue color */
.showcase-swiper .swiper-button-prev,
.showcase-swiper .swiper-button-next {
    color: var(--wm-red) !important;
}

.showcase-swiper .swiper-button-prev:after,
.showcase-swiper .swiper-button-next:after {
    color: var(--wm-red) !important;
}

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

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

/* =================================================================
   7. FEATURED PRODUCTS SECTION STYLES
================================================================= */
.products-section {
    padding: 80px 0;
    background-color: var(--wm-light-gray);
}

/* Use solution-card styles similar to shop.css */
.products-section .solution-card {
    background-color: var(--wm-white);
    border: 1px solid #e8edf5;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    will-change: transform;
}

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

.products-section .solution-card .card-image-wrapper {
    display: block;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background-color: var(--wm-white);
    border-radius: 15px 15px 0 0;
    position: relative;
}

.products-section .solution-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        object-fit 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    will-change: transform;
}

.products-section .solution-card:hover .card-image {
    transform: scale(1.05);
    object-fit: cover;
    object-position: center;
}

.products-section .solution-card .card-content {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.products-section .solution-card .card-tags {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
    margin-bottom: 8px;
}

.products-section .solution-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--wm-dark-gray);
    line-height: 1.35;
    letter-spacing: -0.02em;
    transition: color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.products-section .solution-card:hover .card-title {
    color: var(--wm-red);
}

.products-section .solution-card .card-description {
    color: var(--wm-body-text);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-section .solution-card .card-specs {
    border-top: 1px solid #e8edf5;
    padding-top: 0.75rem;
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.products-section .solution-card .spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-section .solution-card .spec-item i {
    font-size: 0.9rem;
    color: var(--wm-red);
    margin-bottom: 0.15rem;
    display: block;
}

.products-section .solution-card .spec-item .spec-value {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--wm-dark-gray);
    display: block;
}

.products-section .solution-card .spec-item .spec-label {
    font-size: 0.7rem;
    color: #718096;
    text-transform: uppercase;
    display: block;
}

.products-section .solution-card .btn-view-details {
    background-color: var(--wm-red);
    color: var(--wm-white);
    border-radius: 8px;
    padding: 10px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.75rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.products-section .solution-card .btn-view-details::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.products-section .solution-card .btn-view-details:hover::before {
    width: 300px;
    height: 300px;
}

.products-section .solution-card .btn-view-details:hover {
    background-color: var(--wm-red-dark);
    box-shadow: 0 8px 20px rgba(165, 42, 42, 0.3);
    transform: translateY(-2px);
}

/* =================================================================
   8. WHY CHOOSE US SECTION STYLES
================================================================= */
.why-choose-us-section {
    padding: 80px 0;
    background-color: var(--wm-white);
}

.why-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    background-color: var(--wm-white);
}

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

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--wm-red), var(--wm-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wm-white);
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(165, 42, 42, 0.2);
}

.why-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--wm-dark-gray);
    margin-bottom: 15px;
}

.why-item p {
    font-size: 0.95rem;
    color: var(--wm-body-text);
    line-height: 1.6;
    margin: 0;
}


/* =================================================================
   9. SERVICES SECTION STYLES
================================================================= */
.services-section {
    padding: 80px 0;
    background-color: var(--wm-white);
}

.service-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
    background-color: var(--wm-white);
    border: 1px solid #e8edf5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--wm-red);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--wm-red), var(--wm-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wm-white);
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(165, 42, 42, 0.25);
}

.service-item h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--wm-dark-gray);
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1rem;
    color: var(--wm-body-text);
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-link {
    color: var(--wm-red);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--wm-red-dark);
    gap: 12px;
}

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

.service-link:hover i {
    transform: translateX(5px);
}


/* =================================================================
   10. 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;
}

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

.blog-card-img-wrapper {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.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;
    width: 100%;
    position: relative;
    overflow: hidden; /* Prevent map from overflowing */
}

.location-map-wrapper-redesigned .map-click-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    transition: background-color 0.3s ease;
}

.location-map-wrapper-redesigned .map-click-overlay:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.location-map-wrapper-redesigned iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* Disable iframe interactions, use overlay instead */
    z-index: 1;
}

.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;
}

.section-subtitle-left {
    font-size: 1.1rem;
    color: var(--wm-body-text);
    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;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    margin-inline-end: 20px; /* Works for both LTR and RTL */
}

.contact-info-list li div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.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;
    min-height: 500px;
    height: auto;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    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;
    left: 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.3rem;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(165, 42, 42, 0.4);
}

#back-to-top:hover {
    background-color: var(--wm-red-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(165, 42, 42, 0.6);
}

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

#back-to-top.visible:hover {
    transform: translateY(-5px);
}

/* =================================================================
   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: 400px;
        min-height: 400px; /* Ensure minimum height */
    }

    .location-details {
        padding: 30px;
    }
    
    .location-card-redesigned {
        flex-direction: column;
    }
    
    .location-card-redesigned .col-lg-6:first-child {
        order: 2; /* Map goes below on mobile */
    }
    
    .location-card-redesigned .col-lg-6:last-child {
        order: 1; /* Details go first on mobile */
    }
}

/* Small devices (landscape phones, 768px and down) */
@media (max-width: 768px) {
    .location-map-wrapper-redesigned {
        height: 350px;
        min-height: 350px;
    }
    
    .location-details {
        padding: 25px 20px;
    }
    
    .contact-info-list li i {
        width: 22px;
        font-size: 1.1rem;
        margin-inline-end: 15px;
    }
    
    section {
        padding: 50px 0; /* Reduced from 60px for better mobile UX */
    }

    #hero-new {
        min-height: unset;
        height: 90vh;
        /* Disable ken-burns animation on mobile - causes jitter */
        animation: none;
        background-size: cover;
        background-position: center;
    }

    /* Scroll indicator removed */

    .showcase-swiper {
        height: 400px; /* Reduced height for mobile */
        border-radius: 12px;
    }

    .showcase-swiper .swiper-slide {
        padding: 25px 20px;
    }

    .showcase-swiper .slide-text h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .showcase-swiper .slide-text .tagline {
        font-size: 0.8rem;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    .showcase-swiper .btn-slide {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Ensure autoplay and touch work smoothly on mobile - same as desktop */
    .showcase-swiper {
        touch-action: pan-y pinch-zoom; /* Allow vertical scrolling and touch */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Hide navigation buttons on mobile - use touch swipe instead */
    .showcase-swiper-wrapper .swiper-nav-button,
    .swiper-nav-button {
        display: none !important; /* Hide buttons on mobile */
    }
    
    /* Ensure overlay doesn't block buttons */
    .showcase-swiper .slide-overlay {
        pointer-events: none !important; /* Allow clicks to pass through */
    }
    
    /* Ensure slide content is clickable */
    .showcase-swiper .slide-text {
        pointer-events: auto; /* Allow clicks on text content */
    }
    
    .showcase-swiper .btn-slide {
        pointer-events: auto; /* Ensure button is clickable */
    }
    
    /* Make sure wrapper doesn't block buttons */
    .showcase-swiper-wrapper {
        position: relative !important;
        z-index: 1;
    }
    
    /* Brand swiper - same behavior on mobile and desktop */
    .brand-swiper {
        touch-action: pan-x pinch-zoom; /* Allow horizontal scrolling and touch */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

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

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

    /* Ensure mobile swipers are visible */
    .markets-swiper,
    .products-swiper {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Optimize card heights for mobile */
    .markets-section,
    .products-section {
        padding: 40px 0; /* Reduced padding for mobile */
    }

    .market-card {
        height: 380px; /* Fixed height for mobile */
    }
    
    .market-card .card-bg-image {
        height: 240px; /* Reduced image height on mobile */
    }
    
    .market-card .card-content {
        min-height: 140px; /* Reduced content height on mobile */
        padding: 20px 18px;
    }
    
    .market-card .card-title {
        font-size: 1.5rem;
        min-height: 2.4em; /* Adjusted for smaller font */
        max-height: 2.4em;
    }

    .products-section .solution-card .card-image-wrapper {
        height: 300px; /* Reduced from 420px */
    }

    .products-section .solution-card .card-content {
        padding: 14px 16px; /* Reduced padding */
    }
}

/* Extra small devices (phones, 575px and down) */
@media (max-width: 575px) {
    .location-map-wrapper-redesigned {
        height: 300px;
        min-height: 300px;
    }
    
    .location-details {
        padding: 20px 15px;
    }
    
    .contact-info-list li {
        margin-bottom: 15px;
    }
    
    .contact-info-list li i {
        width: 20px;
        font-size: 1rem;
        margin-inline-end: 12px;
    }

    section {
        padding: 40px 0; /* Further reduced for small phones */
    }

    .markets-section,
    .products-section {
        padding: 35px 0; /* Even more compact */
    }

    .market-card {
        height: 340px; /* Fixed height for extra small devices */
    }
    
    .market-card .card-bg-image {
        height: 200px;
    }
    
    .market-card .card-content {
        min-height: 140px;
        padding: 18px 15px;
    }
    
    .market-card .card-title {
        font-size: 1.3rem;
        min-height: 2.2em;
        max-height: 2.2em;
    }

    .products-section .solution-card .card-image-wrapper {
        height: 260px; /* Further reduced */
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem); /* Smaller titles */
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
}

/* =================================================================
   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);
    }
}

