/*
 * PROSOL Website Stylesheet
 * Ported from the original prosolglobal.com style.css; layout, colours and breakpoints are unchanged.
 */

/* Fonts (self-hosted variable fonts, latin subset) */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/open-sans-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/roboto-latin.woff2') format('woff2');
}

:root {
    --primary-color: #1a2b49; /* Dark Blue */
    --accent-color: #f0f0f0;
    --text-color: #333;
    --white: #ffffff;
    --link-hover: #012ad0;
    --orange: #ff6b35;
    --green: rgb(4, 184, 4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* <picture> wrappers should not affect layout: the <img> behaves as the direct child */
picture {
    display: contents;
}

.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

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

/* Sideways entrance animations must never create horizontal scrolling */
main {
    overflow-x: clip;
}

.skip-link {
    position: absolute;
    left: 10px;
    top: -60px;
    z-index: 2000;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 10px;
}

:focus-visible {
    outline: 2px solid var(--link-hover);
    outline-offset: 3px;
}

/* Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 1000;
    padding: 5px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
}

.sticky-header.header-hidden {
    transform: translateY(-100%);
}

.sticky-header:has(.header-right.menu-open),
.sticky-header.menu-open {
    background-color: rgb(255, 255, 255);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 15px 15px;
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    min-height: 80px;
}

/* Navigation centered */
.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 8px 30px;
    border-radius: 20px;
}

.header-actions {
    margin-left: auto;
}

.logo-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-left span {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-align: center;
}

.logo-left a {
    display: inline-block;
    text-decoration: none;
}

.logo-left img, .logo-right img {
    padding-top: 5px;
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.header-mobile-right {
    display: none;
    align-items: center;
    gap: 15px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--link-hover);
}

.btn-enquire {
    display: inline-block;
    background-color: #fff;
    color: var(--primary-color);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.btn-enquire:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    top: 0;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-inner-container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-height: 400px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: var(--white);
    gap: 50px;
}

.hero-text {
    flex: 1;
    min-height: 180px;
}

.hero-text h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.69);
    margin: 0;
    padding: 0;
}

.hero-line {
    display: inline-block;
}

.hero-cta-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

/* 404 page */
.error-text {
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.69);
}

/* Clients Hero Section */
.clients-hero {
    position: relative;
    height: 75vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

/* Partners Hero Section */
.partners-hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    padding-top: 80px;
}

.partners-hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.partners-hero-content {
    margin-top: 4rem;
    color: var(--primary-color);
    max-width: 600px;
    min-height: 200px;
}

.partners-hero-content h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    margin-top: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0;
}

.partners-hero-content p {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Products Hero Section */
.products-hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    padding-top: 80px;
}

.products-hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.products-hero-content {
    margin-top: 4rem;
    color: #fff;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.products-hero-content h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 4px 4px 8px rgb(0, 0, 0);
    padding: 0;
}

.products-hero-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

/* Industries Hero Section */
.industries-hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    padding-top: 80px;
}

.industries-hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.industries-hero-content {
    margin-top: 4rem;
    color: #fff;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.industries-hero-content h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 4px 4px 8px rgb(0, 0, 0);
    margin: 0;
    padding: 0;
}

.industries-hero-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

/* About Us Hero Section */
.about-us-hero {
    position: relative;
    height: 75vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-top: 80px;
    padding-bottom: 5px;
}

.about-us-hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5px;
    min-height: 400px;
}

.about-us-hero-content {
    margin-top: 0;
    margin-bottom: 5px;
    color: #fff;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.about-us-hero-content h1 {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
    padding: 0;
}

/* Products Grid Section */
.products-grid-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.products-section-header {
    text-align: left;
    margin-bottom: 60px;
    max-width: 800px;
}

.products-section-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.products-section-intro {
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1.6;
    margin: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.products-grid-section .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .products-grid-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-section .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-category-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-category-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-category-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-category-card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
    margin: 20px 20px 10px 20px;
    text-transform: none;
    line-height: 1.3;
}

.products-grid-section .product-category-card h3 {
    font-size: 1.2rem;
    margin: 24px 24px 12px 24px;
}

.product-category-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 20px 20px 20px;
    line-height: 1.5;
}

.products-grid-section .product-category-card p {
    font-size: 1rem;
    margin: 0 24px 24px 24px;
}

/* Product Category Sections */
.product-category-section {
    padding: 80px 40px;
    background-color: var(--white);
    scroll-margin-top: 100px;
}

.product-category-section:nth-child(even) {
    background-color: #f9f9f9;
}

.category-section-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

/* Product Item Cards */
.product-item-card {
    background-color: var(--white);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.product-item-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.product-item-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item-card:hover .product-item-image img {
    transform: scale(1.05);
}

.product-item-card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    margin: 12px 15px;
    text-transform: none;
    line-height: 1.3;
}

.product-category-section .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Clients Section */
.clients-section {
    padding: 0px 40px;
    padding-top: 20px;
    background-color: var(--white);
}

.clients-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.clients-heading {
    flex: 0 0 auto;
}

.clients-heading h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.clients-description {
    flex: 1;
}

.clients-description p {
    font-size: 1.5rem;
    color: #000000;
    line-height: 1.8;
    max-width: 600px;
}

/* Clients Grid Section */
.clients-grid-section {
    padding: 80px 0;
    background-color: var(--white);
}

.sector-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.client-card,
.partner-card {
    background-color: #f5f5f5;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
}

.client-card::after,
.partner-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.client-card:hover::after,
.client-card:focus-visible::after,
.partner-card:hover::after,
.partner-card:focus-visible::after {
    background-color: var(--primary-color);
}

.client-logo {
    max-height: 80px;
    width: auto;
    height: 80px;
    min-height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.client-card h3,
.partner-card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #000000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0;
    transition: letter-spacing 0.3s ease;
}

.client-card:hover h3,
.partner-card:hover h3 {
    letter-spacing: 2px;
}

/* Partners Grid Section */
.partners-grid-section {
    padding-bottom: 80px;
    background-color: var(--white);
}

.partners-section-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.partner-logo {
    width: 150px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Stats Section */
.stats-bar {
    padding: 80px 0;
    background-color: var(--white);
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 60px;
    align-items: start;
}

.stats-left {
    display: flex;
    align-items: flex-start;
}

.stats-divider {
    width: 1px;
    background-color: #e0e0e0;
    align-self: stretch;
    margin: 0;
}

.stats-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 3rem;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.br-desktop {
    display: block;
}

.br-mobile {
    display: none;
}

.text-carousel {
    position: relative;
    display: inline-block;
    min-width: 400px;
    height: 1.2em;
    vertical-align: bottom;
}

.carousel-item {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    left: 0;
    white-space: nowrap;
    top: 0;
    color: var(--green);
}

.carousel-item.active {
    position: relative;
    opacity: 1;
    display: inline-block;
}

.sector-text {
    color: #333;
}

.stats-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stats-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.stat-number {
    font-size: 2.5rem;
    color: rgb(7, 63, 167);
    font-weight: 500;
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    color: var(--green);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background-color: var(--white);
}

.portfolio-container {
    position: relative;
}

.portfolio-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.portfolio-intro p {
    font-size: 1.8rem;
    color: var(--primary-color);
    line-height: 1.4;
    font-weight: 500;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-grid a {
    text-decoration: none;
    display: block;
}

.portfolio-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    padding: 0;
    overflow: hidden;
    min-height: 600px;
}

.portfolio-text {
    width: 100%;
    background-color: var(--white);
    padding: 30px;
}

.portfolio-card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.portfolio-card p {
    font-size: 1.1rem;
    color: #494949;
    line-height: 1.6;
    max-width: 100%;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../images/hero/about-section-bg.jpg') center/cover no-repeat;
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        image-set(url('../images/hero/about-section-bg.webp') type('image/webp'), url('../images/hero/about-section-bg.jpg') type('image/jpeg')) center/cover no-repeat;
    min-height: 70vh;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    flex: 0 0 65%;
    max-width: 65%;
    padding: 60px 80px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-content h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-content p {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-our-story {
    color: var(--primary-color);
    background-color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    align-self: flex-start;
}

.btn-our-story:hover {
    color: #555;
}

/* Trusted by Industry Leaders */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.trusted-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.trusted-section h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.2;
    flex-shrink: 0;
}

.logos-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    min-width: 0;
}

/* The logo list is rendered twice, so translating by -50% loops seamlessly */
.logos-carousel {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scroll-logos 40s linear infinite;
    width: max-content;
}

.logos-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 20px));
    }
}

.company-logo {
    flex: 0 0 auto;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    max-height: 100px;
    width: auto;
    height: 100px;
    min-height: 100px;
    object-fit: contain;
    display: block;
}

/* Presence Section */
.presence-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.presence-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.world-map-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background-color: #0d1a2e;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.world-map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.location-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--orange);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.3);
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-dot:hover,
.location-dot:focus-visible {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.5);
    outline: none;
}

.dot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: var(--orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.location-tooltip {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 20;
    pointer-events: none;
    margin-left: 15px;
}

.location-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-100%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--orange);
}

.location-dot:hover .location-tooltip,
.location-dot:focus-within .location-tooltip,
.location-dot.active .location-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.tooltip-content {
    background-color: var(--orange);
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    max-width: 260px;
    font-size: 0.75rem;
    line-height: 1.5;
}

.tooltip-content h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tooltip-content p {
    margin: 4px 0;
    color: #ffffff;
    font-size: 0.7rem;
}

.tooltip-content a {
    color: inherit;
    text-decoration: none;
}

.tooltip-content a:hover {
    text-decoration: underline;
}

.tooltip-content p:first-of-type {
    margin-top: 0;
}

.tooltip-content p:last-of-type {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #000000, #1a2b49, #3a5174, #e3e2e2);
    color: var(--white);
    padding: 40px 0 70px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-link-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-col h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link-col a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.6;
}

.footer-link-col a:hover {
    color: #0d1a2e;
}

.footer-link-col .social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.footer-link-col .social-icons a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link-col .social-icons a:hover {
    color: #0d1a2e;
}

/* About Us Page */
.our-story-section {
    padding: 20px 0 80px 0;
    background-color: var(--white);
}

.our-story-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.story-text h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Organizational Chart */
.organigram-section {
    padding: 80px 0 10px 0;
    background-color: #f5f5f5;
    scroll-margin-top: 80px;
}

.organigram-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.organigram-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.organigram-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 600px;
}

/* Vision & Mission */
.vision-mission-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.vision-mission-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.vision-mission-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.vm-icon,
.value-icon,
.standard-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a5174 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.vm-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.vm-icon .icon {
    font-size: 2.5rem;
}

.vm-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vm-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Core Values */
.core-values-section {
    padding: 80px 0;
    background-color: var(--white);
}

.core-values-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
}

.value-icon .icon {
    font-size: 2rem;
}

.value-card h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Our Standards */
.standards-section {
    padding: 0 0 80px 0;
    background-color: var(--white);
}

.standards-section .section-heading {
    margin-top: 0;
    margin-bottom: 30px;
}

.standards-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.standards-intro:last-of-type {
    margin-bottom: 60px;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.standard-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.standard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.standard-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.standard-card:hover .standard-icon {
    transform: scale(1.1);
}

.standard-icon .icon {
    font-size: 2rem;
}

.standard-content {
    width: 100%;
}

.standard-content h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.standard-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.standard-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Industries */
.industries-section {
    padding: 80px 0 60px;
    background-color: var(--white);
}

.industries-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.industries-main-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.industries-intro-text {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.industry-detail-section {
    padding: 0 0 80px;
    background-color: var(--white);
}

.industry-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.industry-card:last-child {
    margin-bottom: 0;
}

.industry-card.reverse {
    direction: rtl;
}

.industry-card.reverse > * {
    direction: ltr;
}

.industry-image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.industry-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.industry-image-wrapper:hover .industry-image {
    transform: scale(1.05);
}

.industry-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Long single words (e.g. TELECOMMUNICATIONS) must not widen the grid column */
.industry-card > * {
    min-width: 0;
}

.industry-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.industry-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.industry-services {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.industry-services li {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    padding-left: 25px;
    position: relative;
}

.industry-services li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.industry-services li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-mobile-right .logo-right {
        display: none;
    }
    .stats-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .stats-divider {
        display: none;
    }
    .stats-left {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 40px;
    }
    .stats-right {
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .br-desktop {
        display: none;
    }
    .heading-line-1::after,
    .heading-line-2::after {
        content: ' ';
    }

    .footer {
        padding: 35px 0 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-right {
        justify-content: flex-start;
    }

    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Mobile header: shared by tablet (769–1024px) and phone (≤768px) */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        min-height: 80px;
        padding: 10px 20px;
        position: relative;
    }

    .logo-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-left span {
        margin-bottom: 0;
        margin-top: 2px;
        line-height: 1.2;
    }

    .header-mobile-right {
        display: flex;
    }

    .header-mobile-right .logo-right {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        position: static;
        transform: none;
    }

    .header-right {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, padding-top 0.3s ease, padding-bottom 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
        margin-left: 0;
    }

    .header-right.menu-open {
        max-height: 500px;
        padding-top: 30px;
        padding-bottom: 30px;
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin: 0;
        width: 100%;
    }

    .main-nav a {
        font-size: 16px;
    }

    .header-actions {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-left: 0;
    }

    .header-actions .btn-enquire {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .logo-left img {
        height: 40px;
    }

    .logo-left span {
        font-size: 0.85rem;
    }

    .logo-right img {
        height: 40px;
    }

    .stats-heading {
        font-size: 2.2rem;
    }
    .text-carousel {
        min-width: 280px;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .stat-item {
        max-width: none;
        align-items: center;
        text-align: center;
    }
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .logo-left img {
        height: 35px;
    }

    .logo-left span {
        font-size: 0.75rem;
    }

    .logo-right img {
        height: 35px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }

    .hero-cta-container {
        justify-content: center;
    }

    .stats-heading {
        font-size: 2rem;
    }
    .br-mobile {
        display: block;
    }
    .text-carousel {
        min-width: 250px;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .stat-item {
        max-width: none;
        align-items: center;
        text-align: center;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-label {
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        min-height: 400px;
        padding-top: 80px;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    /* Portfolio */
    .portfolio-section {
        padding: 60px 0;
    }

    .portfolio-intro {
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .portfolio-intro p {
        font-size: 1.4rem;
    }

    .portfolio-grid {
        gap: 40px;
        padding: 0 20px;
    }

    .portfolio-card {
        min-height: 300px;
    }

    .portfolio-text {
        padding: 20px;
    }

    .portfolio-card h3 {
        font-size: 1.3rem;
    }

    .portfolio-card p {
        font-size: 1rem;
    }

    /* About Section */
    .about-container {
        flex-direction: column;
        justify-content: center;
    }

    .about-content {
        flex: 1;
        max-width: 100%;
        width: 100%;
        padding: 40px 20px;
        text-align: center;
    }

    .about-content h2 {
        font-size: 2rem;
        text-align: center;
    }

    .about-content p {
        max-width: 100%;
        text-align: center;
    }

    .btn-our-story {
        align-self: center;
    }

    /* Trusted */
    .contact-section {
        padding: 60px 0;
    }

    .trusted-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .trusted-section h2 {
        font-size: 2rem;
        text-align: left;
        margin-bottom: 0;
    }

    .logos-carousel {
        gap: 30px;
    }

    @keyframes scroll-logos {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 15px));
        }
    }

    .company-logo {
        min-width: 120px;
    }

    .company-logo img {
        max-height: 60px;
    }

    /* Presence */
    .presence-section {
        padding: 60px 0;
    }

    .presence-heading {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .tooltip-content {
        min-width: 200px;
        max-width: 240px;
        padding: 12px;
        font-size: 0.7rem;
    }

    .tooltip-content h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .tooltip-content p {
        font-size: 0.65rem;
        margin: 4px 0;
    }

    /* Footer */
    .footer {
        padding: 35px 0 25px;
    }

    .footer-content {
        gap: 35px;
    }

    .footer-links-grid {
        gap: 30px;
    }

    /* Page heroes */
    .clients-hero {
        height: 50vh;
        min-height: 300px;
    }

    .partners-hero,
    .industries-hero,
    .products-hero,
    .about-us-hero {
        height: 50vh;
        min-height: 300px;
        padding-top: 40px;
    }

    /* Keep hero headings clear of the fixed mobile header (overlapped on the original) */
    .partners-hero,
    .industries-hero,
    .products-hero {
        padding-top: 115px;
        height: auto;
        min-height: 50vh;
        padding-bottom: 40px;
    }

    .partners-hero-content,
    .industries-hero-content,
    .products-hero-content {
        margin-top: 0;
        min-height: 0;
    }

    .partners-hero-container,
    .industries-hero-container,
    .products-hero-container {
        min-height: 0;
    }

    .industries-hero-content h1,
    .partners-hero-content h1,
    .products-hero-content h1 {
        font-size: 2.5rem;
    }

    .industries-hero-content p,
    .partners-hero-content p,
    .products-hero-content p {
        font-size: 1rem;
    }

    /* Products */
    .products-grid-section {
        padding: 60px 0;
    }

    .products-section-header {
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .products-section-heading {
        font-size: 2rem;
    }

    .products-section-intro {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .product-card-image {
        height: 180px;
    }

    .products-grid-section .product-card-image {
        height: 180px;
    }

    .products-grid-section .product-category-card h3 {
        font-size: 1rem;
        margin: 15px 15px 8px 15px;
    }

    .products-grid-section .product-category-card p {
        font-size: 0.9rem;
        margin: 0 15px 15px 15px;
    }

    .product-category-section {
        padding: 60px 20px;
    }

    .category-section-heading {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .product-category-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-item-image {
        height: 150px;
    }

    .product-item-card h3 {
        font-size: 0.85rem;
        padding: 10px;
    }

    /* Clients */
    .clients-section {
        padding: 60px 0;
    }

    .clients-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .clients-heading h1 {
        font-size: 2.5rem;
    }

    .clients-description p {
        max-width: 100%;
        font-size: 1rem;
    }

    .clients-grid-section {
        padding: 60px 0;
    }

    .sector-heading {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .client-card,
    .partner-card {
        min-height: 180px;
        padding: 30px 15px;
    }

    .client-logo {
        max-height: 60px;
        margin-bottom: 15px;
    }

    .client-card h3,
    .partner-card h3 {
        font-size: 0.9rem;
    }

    /* Partners */
    .partners-grid-section {
        padding-bottom: 60px;
    }

    .partners-section-heading {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .partner-logo {
        width: 120px;
        height: 60px;
        margin-bottom: 15px;
    }

    /* Industries */
    .industries-section {
        padding: 60px 0 40px;
    }

    .industries-main-heading {
        font-size: 2rem;
    }

    .industries-intro-text {
        font-size: 1rem;
        padding: 0 15px;
    }

    .industry-detail-section {
        padding-bottom: 60px;
    }

    .industry-card {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }

    .industry-card.reverse {
        direction: ltr;
    }

    .industry-image-wrapper {
        height: 300px;
    }

    .industry-title {
        font-size: 2rem;
    }

    .industry-description {
        font-size: 1rem;
    }

    .industry-services li {
        font-size: 0.95rem;
    }

    /* About Us */
    .about-us-hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .our-story-section {
        padding: 60px 0;
    }

    .section-heading {
        font-size: 2rem;
    }

    .story-text h2 {
        font-size: 1.5rem;
    }

    .story-text p {
        font-size: 1rem;
    }

    .organigram-section {
        padding: 60px 0 5px 0;
    }

    .organigram-container {
        padding: 20px 10px;
        justify-content: flex-start;
    }

    .organigram-image {
        width: auto;
        min-width: 600px;
        max-width: none;
        height: auto;
    }

    .vision-mission-section {
        padding: 60px 0;
    }

    .vision-mission-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .vm-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 25px;
    }

    .vm-icon .icon {
        font-size: 2rem;
    }

    .vm-heading {
        font-size: 1.5rem;
    }

    .vm-text {
        font-size: 1rem;
    }

    .core-values-section {
        padding: 60px 0;
    }

    .core-values-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }

    .value-card {
        padding: 30px 20px;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .value-icon .icon {
        font-size: 1.8rem;
    }

    .value-card h3 {
        font-size: 1.1rem;
    }

    .value-card p {
        font-size: 0.95rem;
    }

    .standards-section {
        padding: 0 0 60px 0;
    }

    .standards-section .section-heading {
        margin-bottom: 20px;
    }

    .standards-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .standards-intro:last-of-type {
        margin-bottom: 40px;
    }

    .standards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 10px;
    }

    .standard-card {
        padding: 30px 20px;
    }

    .standard-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .standard-icon .icon {
        font-size: 1.8rem;
    }

    .standard-content h3 {
        font-size: 1.1rem;
    }

    .standard-title {
        font-size: 1rem;
    }

    .standard-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 700px) {
    .br-mobile {
        display: block;
    }
    .carousel-item {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .stats-heading {
        font-size: 1.5rem;
    }
    .text-carousel {
        min-width: 200px;
    }
    .stats-description {
        font-size: 0.9rem;
    }
    .stats-grid {
        gap: 10px;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.85rem;
    }

    .clients-section {
        padding: 20px 0;
    }
    .clients-grid-section {
        padding: 40px 15px;
    }

    .clients-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .product-category-section {
        padding: 40px 15px;
    }

    .product-category-section .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .products-hero-content h1,
    .partners-hero-content h1,
    .industries-hero-content h1 {
        font-size: 2rem;
    }

    .products-hero-content p,
    .partners-hero-content p,
    .industries-hero-content p {
        font-size: 0.9rem;
    }

    .about-us-hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    /* Trusted */
    .trusted-section {
        gap: 20px;
    }

    .trusted-section h2 {
        font-size: 1.5rem;
    }

    .logos-carousel {
        gap: 20px;
    }

    @keyframes scroll-logos {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-50% - 10px));
        }
    }

    .company-logo {
        min-width: 100px;
    }

    .company-logo img {
        max-height: 60px;
        height: 60px;
        min-height: 60px;
    }

    .container {
        padding: 0 15px;
    }

    .footer {
        background: linear-gradient(to bottom, #000000, #1a2b49, #3a5174, #e3e2e2);
        padding: 30px 0 20px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
    }

    /* Presence */
    .presence-section {
        padding: 40px 0;
    }

    .presence-heading {
        font-size: 1.5rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .world-map-container {
        border-radius: 10px;
    }

    .world-map-image {
        border-radius: 10px;
    }

    .location-dot {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .dot-pulse {
        width: 12px;
        height: 12px;
    }

    .tooltip-content {
        min-width: 100px;
        max-width: 240px;
        padding: 12px;
        font-size: 0.7rem;
    }

    .tooltip-content h3 {
        font-size: 0.65rem;
        margin-bottom: 8px;
    }

    .tooltip-content p {
        font-size: 0.45rem;
        margin: 3px 0;
    }

    /* UAE tooltip appears on the left side on mobile */
    .location-dot[data-location="UAE"] .location-tooltip {
        left: auto;
        right: 100%;
        text-align: right;
        transform: translateY(-50%) translateX(-10px);
        margin-left: 0;
        margin-right: 15px;
    }

    .location-dot[data-location="UAE"]:hover .location-tooltip,
    .location-dot[data-location="UAE"]:focus-within .location-tooltip,
    .location-dot[data-location="UAE"].active .location-tooltip {
        transform: translateY(-50%) translateX(0);
    }

    .location-dot[data-location="UAE"] .location-tooltip::after {
        top: 50%;
        left: auto;
        right: 0;
        transform: translateY(-50%) translateX(100%);
        border-left: 8px solid var(--orange);
        border-right: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }

    /* Hide Canada and USA dots while the UAE tooltip is open */
    .world-map-container:has(.location-dot[data-location="UAE"].active) .location-dot[data-location="Canada"],
    .world-map-container:has(.location-dot[data-location="UAE"].active) .location-dot[data-location="USA"] {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    /* About Us */
    .about-us-hero-content {
        padding: 0 15px;
    }

    .our-story-content {
        padding: 0 15px;
    }

    .vision-mission-content {
        gap: 40px;
        padding: 0 15px;
    }

    .core-values-intro {
        padding: 0 15px;
    }

    .sector-heading {
        font-size: 1.5rem;
    }

    .partners-grid-section {
        padding: 40px 15px;
    }

    .organigram-intro {
        padding: 0 15px;
        font-size: 0.95rem;
    }

    .clients-heading h1 {
        font-size: 1.8rem;
    }

    .clients-description p {
        font-size: 0.95rem;
    }

    .partners-section-heading {
        font-size: 1.5rem;
    }

    .industry-title {
        font-size: 1.5rem;
        overflow-wrap: break-word;
    }

    .hero-text,
    .hero-cta-container {
        padding: 0 20px;
    }

    .portfolio-intro p {
        font-size: 1.2rem;
    }

    .about-content {
        padding: 30px 20px;
    }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .logos-carousel-wrapper {
        overflow-x: auto;
    }

    .logos-carousel {
        animation: none !important;
    }
}
