:root {
    --primary-color: #D92A2A;
    --primary-dark: #B02222;
    --primary-darker: #8A1A1A;
    --primary-light: #E35555;
    --primary-lighter: #ED8080;
    --primary-pale: #F9E5E5;
    --text-dark: #000000;
    --text-light: #3f3f3f;
    --text-white: #ffffff;
    --bg-white: #d3d3d3;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(217, 42, 42, 0.1);
    --shadow-md: 0 4px 12px rgba(217, 42, 42, 0.15);
    --shadow-lg: 0 8px 24px rgba(217, 42, 42, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 2s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('/images/bg.png');
    background-repeat: no-repeat; /* Prevent the image from tiling */
    background-position: center center; /* Center the image in the viewport */
    background-attachment: fixed; /* Keep the image fixed during scroll */
    background-size: cover;
}

    /* RTL Support */
    body[dir="rtl"] {
        direction: rtl;
        text-align: right;
    }

        /* Keep navigation, language switcher, and slider controls in LTR even when page is RTL */
        body[dir="rtl"] .nav-menu,
        body[dir="rtl"] .nav-container,
        body[dir="rtl"] .nav-links,
        body[dir="rtl"] .language-switcher,
        body[dir="rtl"] .slider-controls,
        body[dir="rtl"] .slider-arrow {
            direction: ltr;
            text-align: left;
        }

        /* Force flex-direction to stay row in RTL mode */
        body[dir="rtl"] .nav-container {
            flex-direction: row !important;
        }

        body[dir="rtl"] .nav-links {
            flex-direction: row !important;
        }

        body[dir="rtl"] .language-switcher {
            flex-direction: row !important;
        }

        body[dir="rtl"] .slider-controls {
            flex-direction: row !important;
        }

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

    a:hover {
        color: var(--primary-dark);
    }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation - Two Row Layout */
.nav-menu {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Row - Logo and Contact Info */
.nav-top-row {
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md) 0;
}

    .nav-top-row .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 var(--spacing-md);
        max-width: 1200px;
        margin: 0 auto;
        flex-direction: row !important;
    }

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

/* Contact Info */
.nav-contact-info {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Bottom Row - Main Navigation */
.nav-bottom-row {
    background: var(--bg-light);
    padding: var(--spacing-sm) 0;
}

    .nav-bottom-row .nav-container {
        display: flex;
        align-items: center;
        padding: 0 var(--spacing-md);
        max-width: 1200px;
        margin: 0 auto;
        flex-direction: row !important;
    }

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    flex-direction: row !important;
    margin: 0;
    padding: 0;
}

    .nav-links a {
        color: var(--text-dark);
        font-weight: 500;
        padding: var(--spacing-xs) var(--spacing-sm);
        border-radius: var(--border-radius-sm);
        transition: all var(--transition-fast);
        position: relative;
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        text-decoration: none;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: width var(--transition-normal);
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 80%;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 180px;
    right: var(--spacing-md);
    z-index: 999;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xs);
    display: flex;
    gap: var(--spacing-xs);
    flex-direction: row !important;
}

    .language-switcher button {
        padding: var(--spacing-xs) var(--spacing-sm);
        border: 2px solid var(--border-color);
        background: var(--bg-white);
        color: var(--text-dark);
        border-radius: var(--border-radius-md);
        cursor: pointer;
        font-weight: 500;
        transition: all var(--transition-fast);
        min-width: 50px;
    }

        .language-switcher button:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            transform: translateY(-2px);
        }

        .language-switcher button.active {
            background: var(--primary-color);
            color: var(--text-white);
            border-color: var(--primary-color);
        }

/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background: var(--bg-dark);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

    .slide.active {
        opacity: 1;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .slide video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slide-content {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-white);
    z-index: 2;
    width: 80%;
}

    .slide-content h1 {
        font-size: 3rem;
        text-align: left;
        margin-bottom: var(--spacing-md);
        color: var(--text-white);
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    }

    .slide-content h2 {
        font-size: 3rem;
        margin-bottom: var(--spacing-md);
        color: var(--text-white);
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    }

    .slide-content p {
        font-size: 1.25rem;
        color: var(--text-white);
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    }

.slider-controls {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 3;
    flex-direction: row !important;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--text-white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .slider-dot:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }

    .slider-dot.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--text-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 6.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 3;
}

    .slider-arrow:hover {
        transform: translateY(-50%) scale(1.1);
    }

    .slider-arrow.prev {
        left: var(--spacing-lg);
    }

    .slider-arrow.next {
        right: var(--spacing-lg);
    }

/* Page Content */
.page-content {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 400px);
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Make page-header touch the sides of product-card */
.product-card .product-card-page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/home.jpg');
    padding: var(--spacing-xl) 0;
    margin-left: calc(-1 * var(--spacing-xl));
    margin-right: calc(-1 * var(--spacing-xl));
    margin-top: calc(-1 * var(--spacing-xl));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header h1 {
    color: var(--text-white);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Cards */
.karmend-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    /*transition: all var(--transition-normal);*/
    margin-bottom: var(--spacing-md);
}

    .karmend-card:hover {
        box-shadow: var(--shadow-lg);
        /*transform: translateY(-4px);*/
    }

    .karmend-card h3 {
        color: var(--primary-color);
        margin-bottom: var(--spacing-sm);
    }

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    font-family: inherit;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px var(--primary-pale);
    }

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.validation-message {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* Buttons */
.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: var(--text-white);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alert Messages */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: var(--primary-pale);
    color: var(--primary-darker);
    border: 1px solid var(--primary-light);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-top-row .nav-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-contact-info {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .language-switcher {
        top: auto;
        bottom: var(--spacing-md);
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 3.5rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-slow) ease-out;
}

/*.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}*/

/*.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    text-align: center;
    border: 1px solid rgba(217, 42, 42, 0.1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.product-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto var(--spacing-md);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-white);
    transition: all var(--transition-normal);
}

.product-card:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(217, 42, 42, 0.35);
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}

.product-card p {
    color: var(--text-light);
    line-height: 1.7;
}*/

/* Color Updates - Navigation and Body */
body {
    background-color: #d3d3d3 !important;
}

.nav-top-row {
    background: #d3d3d3 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.nav-bottom-row {
    background: #d92a2a !important;
}

.nav-links a {
    color: white !important;
}

    .nav-links a::after {
        background: white !important;
    }

    .nav-links a:hover {
        color: rgba(255, 255, 255, 0.8) !important;
    }

/* Products Grid - Modern Design */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

    .product-card:hover {
        box-shadow: 0 12px 40px rgba(217, 42, 42, 0.15);
        transform: translateY(-10px);
        /*border-color: var(--primary-color);*/
    }

.product-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

    .product-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    }

.product-card:hover .product-icon {
    transform: scale(1.05);
}

    .product-card:hover .product-icon img {
        filter: drop-shadow(0 8px 16px rgba(217, 42, 42, 0.2));
    }

.product-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 600;
}

.product-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Product Detail Page */
.product-detail {
    max-width: 900px;
    margin: 0 auto;
}

.product-detail-header {
    text-align: center;
    height: 200px;
    padding: var(--spacing-xl) 0;
}

.product-detail-icon {
    width: 250px;
    height: 250px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .product-detail-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
    }

.product-detail-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.product-category {
    color: var(--text-light);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-content {
    padding: var(--spacing-xl) 0;
}

.product-description {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-xl);
}

    .product-description h2 {
        color: var(--text-dark);
        margin-bottom: var(--spacing-md);
    }

    .product-description p {
        font-size: 1.1rem;
        line-height: 1.8;
    }

.product-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

    .btn-secondary:hover {
        background: var(--primary-color);
        color: var(--text-white);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Product Specifications */
.product-specifications {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-xl);
}

    .product-specifications h2 {
        color: var(--primary-color);
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-sm);
        border-bottom: 2px solid var(--border-color);
    }

.spec-category {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden; /* important */
}

    .spec-category h3 {
        color: var(--text-dark);
        font-size: 1.2rem;
        margin-bottom: var(--spacing-sm);
        font-weight: 600;
    }

    .spec-category ul {
        list-style: disc;
        padding-left: var(--spacing-md);
        margin: 0;
    }

        .spec-category ul li {
            color: var(--text-dark);
            padding: var(--spacing-xs) 0;
            position: relative;
            font-size: 1rem;
        }

            .spec-category ul li::before {
                color: var(--primary-color);
                font-weight: bold;
                position: absolute;
                left: calc(-1 * var(--spacing-md));
            }

            .spec-category ul li sub {
                font-size: 0.8em;
            }

@media (max-width: 968px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-icon {
        width: 150px;
        height: 150px;
    }

    .product-detail-icon {
        width: 180px;
        height: 180px;
    }

    .product-detail-header h1 {
        font-size: 2rem;
    }

    .product-actions {
        flex-direction: column;
    }

        .product-actions .btn {
            width: 100%;
        }
}

/* About Page Image Section */
.about-image-section {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.about-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    display: block;
    margin: 0 auto;
}

/* About Page Header with Background Image */
.about-page-header {
    background-image: url('/images/about.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .about-page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 0;
    }

    .about-page-header h1,
    .about-page-header p {
        position: relative;
        z-index: 1;
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

@media (max-width: 768px) {
    .about-page-header {
        min-height: 300px;
    }
}

/* Services Page Header with Background Image */
.services-page-header {
    background-image: url('/images/services.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .services-page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 0;
    }

    .services-page-header h1,
    .services-page-header p {
        position: relative;
        z-index: 1;
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

@media (max-width: 768px) {
    .services-page-header {
        min-height: 300px;
    }
}

.products-page-header {
    background-image: url('/images/product.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 395px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .products-page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.25);
        z-index: 0;
    }

    .products-page-header h1,
    .products-page-header p {
        position: relative;
        z-index: 1;
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

@media (max-width: 768px) {
    .products-page-header {
        min-height: 300px;
    }
}

/* Strategic Section Grid - 2x2 Layout */
.strategic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
    .strategic-grid {
        grid-template-columns: 1fr;
    }
}

/* Strategic Page Header with Background */
.strategic-page-header {
    background-image: url('/images/strategies.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: calc(-1 * var(--spacing-xl));
    margin-right: calc(-1 * var(--spacing-xl));
    margin-top: calc(-1 * var(--spacing-xl));
    margin-bottom: calc(-1 * var(--spacing-xl));
    border-radius: var(--border-radius-lg);
}

    .strategic-page-header h2 {
        color: var(--text-white);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        font-size: 3rem;
        font-weight: 600;
        padding-bottom: var(--spacing-lg);
        padding-top: var(--spacing-lg);
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }

    .strategic-page-header p {
        color: var(--text-white);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        font-size: 1rem;
        font-weight: 400;
        padding-bottom: var(--spacing-lg);
        padding-top: var(--spacing-lg);
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }

/* Strategic Item Backgrounds */
.strategic-item {
    min-height: 300px;
    padding: var(--spacing-xl);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius-lg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: calc(-1 * var(--spacing-xl));
    margin-right: calc(-1 * var(--spacing-xl));
    margin-top: calc(-1 * var(--spacing-xl));
    margin-bottom: calc(-1 * var(--spacing-xl));
}

    /* Add overlay for better text readability */
    .strategic-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        border-radius: var(--border-radius-lg);
        z-index: 0;
    }

.strategic-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

    .strategic-content h3,
    .strategic-content p {
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

/* Individual strategic item backgrounds */
.strategic-item-presence {
    background-image: url('/images/presenceGlobalMarkets.jpg');
}

.strategic-item-needs {
    background-image: url('/images/needsIndustries.jpg');
}

.strategic-item-satisfaction {
    background-image: url('/images/customerSatisfaction.jpg');
}

.strategic-item-markets {
    background-image: url('/images/newMarkets.jpg');
}

/* Product Detail Page Header Backgrounds */
.product-detail-header-chemicals {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/chemicals.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
}

.product-detail-header-minerals {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/minerals.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
}

.product-detail-header-polymers {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/polymers-header.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
}

.product-detail-header-steel {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/steel.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
}

.product-detail-header-oil-gas {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/oil.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
}

.product-detail-header-pipeproducts {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/pipes.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-lg);
}

    /* Make text white on product detail headers with backgrounds */
    .product-detail-header-chemicals .product-category,
    .product-detail-header-minerals .product-category,
    .product-detail-header-polymers .product-category,
    .product-detail-header-steel .product-category,
    .product-detail-header-oil-gas .product-category,
    .product-detail-header-pipeproducts .product-category {
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        font-weight: bold;
        font-size: 2.5rem;
    }


/* =============================
   BURGER MENU - Mobile Nav
   ============================= */

/* Burger icon button */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

    .burger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: all var(--transition-normal);
        transform-origin: center;
    }

    /* Animated X when open */
    .burger-menu.open span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .burger-menu.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .burger-menu.open span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

    .mobile-nav-overlay.open {
        opacity: 1;
    }

/* Mobile nav drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    padding: var(--spacing-xl) 0 var(--spacing-xl);
    display: flex;
    flex-direction: column;
}

    .mobile-nav-drawer.open {
        transform: translateX(0);
    }

/* Logo inside drawer */
.mobile-nav-logo {
    padding: 0 var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

    .mobile-nav-logo img {
        height: 45px;
        width: auto;
        object-fit: contain;
    }

/* Nav links inside drawer */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

    .mobile-nav-links li a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        color: var(--text-dark);
        font-weight: 500;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-left: 4px solid transparent;
        transition: all var(--transition-fast);
    }

        .mobile-nav-links li a:hover,
        .mobile-nav-links li a.active {
            color: var(--primary-color);
            background: var(--primary-pale);
            border-left-color: var(--primary-color);
        }

/* Contact info inside drawer */
.mobile-nav-contact {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

    .mobile-nav-contact .contact-item {
        font-size: 0.9rem;
    }

/* =============================
   RESPONSIVE BREAKPOINT
   ============================= */

@media (max-width: 768px) {
    .nav-contact-info {
        display: none;
    }
    /* Show burger, hide desktop links */
    .burger-menu {
        display: flex;
    }

    .nav-bottom-row .nav-links {
        display: none !important;
    }

    /* Make bottom row a flex row with burger on the right */
    .nav-bottom-row .nav-container {
        justify-content: space-between;
        align-items: center;
    }

    /* Show overlay and drawer only when toggled via JS */
    .mobile-nav-overlay {
        display: block;
        pointer-events: none;
    }

    .products-page-header
    .mobile-nav-overlay.open {
        pointer-events: all;
    }
}

/*Neon Text*/
.neon-text {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 5px #ff002b, 0 0 10px #ff002b, 0 0 20px #ff002b, 0 0 40px #ff002b, 0 0 80px #ff002b;
    animation: glow 1.5s infinite alternate;
}

.text-1 {
    margin-left: 10rem;
}

.text-2 {
    margin-left: 20rem;
}


@media (max-width: 768px) {
    .text-0 {
        margin-top: 10rem;
    }

    .text-1 {
        margin-left: 0rem;
    }

    .text-2 {
        margin-left: 0rem;
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px #ff002b, 0 0 10px #ff002b, 0 0 20px #ff002b, 0 0 40px #ff002b, 0 0 80px #ff002b;
    }

    100% {
        text-shadow: 0 0 10px #ff9900, 0 0 20px #ff9900, 0 0 40px #ff9900, 0 0 80px #ff9900, 0 0 160px #ff9900;
    }
}

/*RedDot*/
.red-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--primary-dark);
    border-radius: 50%;
    margin-left: 25px;
    margin-right: 25px;
}

/*Running line*/
.marquee {
    overflow: hidden;
    font-family: "Pridi", sans-serif;
    font-weight: 600;
    font-size: 24px;
    text-transform: uppercase;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: scroll 25s linear infinite;
    margin: 0;
    padding: 10px 0px;
}

.marquee__group {
    display: flex;
    flex-shrink: 0;
}

.marquee__item {
    color: var(--text-white);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.spec-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100px;
    pointer-events: none;
}

.spec-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent 0%, black 38%), linear-gradient(to top, transparent 0%, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 38%), linear-gradient(to top, transparent 0%, black 30%);
    mask-composite: intersect;
    border-radius: var(--border-radius-md);
}


/*Social icons*/
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 0 auto 15px auto;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
}

    .social-icons a img {
        width: 32px;
        height: 32px;
    }

    .social-icons a:hover img {
        transform: scale(1.15);
        opacity: 0.85;
    }

/* Allow absolute positioning inside the bottom nav row */
.nav-bottom-row {
    position: relative;
}

/* Social icons pinned to the right, vertically centered */
.social-icons-small-right {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

    .social-icons-small-right a {
        display: inline-flex;
        align-items: center;
    }

        .social-icons-small-right a img {
            width: 24px;
            height: 24px;
            display: block;
            transition: transform var(--transition-fast), opacity var(--transition-fast);
        }

        .social-icons-small-right a:hover img {
            transform: scale(1.15);
            opacity: 0.85;
        }

/* Hide on mobile so they don't collide with the burger menu */
@media (max-width: 768px) {
    .social-icons-small-right {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .social-icons {
        gap: 10px; /* smaller spacing on mobile */
    }

        .social-icons a img {
            width: 30px; /* shrink icons */
            height: 30px;
        }
}

@media (max-width: 400px) {
    .social-icons {
        flex-direction: column;
    }
}
