/**
 * SNTC Website Styles - Modern, Clean, Professional Design
 * SAQOOR AL NAJED TRADING & CONTRACTING CO.
 * Inspired by modern corporate websites
 */

/* ===== CSS Variables ===== */
:root {
    /* New Theme Colors (Blue & Orange) */
    --brand-primary: #004a8f;
    /* Main Blue */
    --brand-secondary: #f05a22;
    /* Accent Orange */
    --brand-dark: #002a5c;
    /* Dark Blue */
    --brand-light: #eef4fa;
    /* Light Blue Background */

    --white: #FFFFFF;
    --text-grey: #6C757D;
    --border-grey: #E9ECEF;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
    /* Header/Navbar Variables */
    --header-height: 110px;
    --header-height-scrolled: 80px;
    --header-width: 85%;
    /* Legacy support - map old colors to new */
    --primary-blue: var(--brand-primary);
    --bright-red: var(--brand-secondary);
    --primary-green: var(--brand-primary);
    --bright-yellow: var(--brand-secondary);
    --dark-grey: #2C3E50;
    --light-grey: var(--brand-light);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

body {
    font-family: var(--font-primary);
    color: var(--dark-grey);
    line-height: 1.7;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Mobile touch improvements */
@media (max-width: 768px) {

    a,
    button {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevent horizontal scroll */
    body,
    html {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
        max-width: 100vw;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Images should not overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Tables should scroll horizontally */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }

    /* Ensure all containers don't overflow */
    .container,
    section,
    div,
    article,
    aside,
    header,
    footer {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
}

.navbar .container {
    overflow: visible !important;
    max-width: 100%;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.page-content {
    padding: 40px 0;
}

.content-section {
    padding: 2rem 0;
}

.content-section h2 {
    margin-top: 3rem;
    margin-bottom: 2rem;
    color: var(--brand-primary);
    font-size: 2rem;
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--brand-secondary);
    display: inline-block;
    width: 100%;
}

.content-section h2:first-of-type {
    margin-top: 0;
}

.content-section p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-grey);
}

.content-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-section ul li {
    margin-bottom: 0.8rem;
    list-style-type: disc;
    line-height: 1.8;
    color: var(--text-grey);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-grey);
    font-size: 1.25rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 400;
}

/* ===== Navigation ===== */
header,
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(45, 80, 22, 0.1);
    animation: slideDown 0.6s ease-out;
    width: var(--header-width);
    max-width: var(--header-width);
    border-radius: 0 0 16px 16px;
    overflow: visible;
    box-sizing: border-box;
    height: var(--header-height);
    min-height: var(--header-height);
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.navbar.scrolled {
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border-bottom: 1px solid rgba(45, 80, 22, 0.15);
    padding: 0;
    transform: translateX(-50%);
    height: var(--header-height-scrolled);
    min-height: var(--header-height-scrolled);
}

/* Mobile navbar scrolled state - keep it fixed */
@media (max-width: 768px) {
    .navbar.scrolled {
        left: 0 !important;
        transform: none !important;
    }
}

@media (max-width: 576px) {
    .navbar.scrolled {
        left: 0 !important;
        transform: none !important;
    }
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    transition: padding 0.3s ease;
    min-height: var(--header-height);
    height: var(--header-height);
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    gap: 0.5rem;
}

.nav-wrapper .mobile-menu-toggle {
    position: relative;
    z-index: 10000 !important;
}

.navbar.scrolled {
    height: var(--header-height-scrolled);
    min-height: var(--header-height-scrolled);
}

.navbar.scrolled .nav-wrapper {
    padding: 0.3rem 0;
    min-height: var(--header-height-scrolled);
    height: var(--header-height-scrolled);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
    margin-right: 0.5rem;
    padding-right: 0.2rem;
    max-height: var(--header-height);
    overflow: visible;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 1rem;
    text-decoration: none;
    padding: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.logo-text-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo-text-arabic {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-primary);
    letter-spacing: 0.3px;
    white-space: nowrap;
    direction: rtl;
    font-family: 'Arial', 'Tahoma', sans-serif;
}

.logo-img {
    height: auto;
    max-height: 150px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    display: block;
}

.navbar.scrolled .logo-img {
    height: auto;
    max-height: 125px;
    width: auto;
    max-width: 400px;
}

.logo-img:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}


.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.nav-menu li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--dark-grey);
    font-weight: 600;
    position: relative;
    padding: 0.4rem 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    font-size: 0.75rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
    border-radius: 2px 2px 0 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%) scale(0);
    width: 6px;
    height: 6px;
    background: var(--brand-secondary);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary);
    transform: translateY(-1px);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    left: -15px;
}

.nav-link i {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(10, 42, 90, 0.1);
    overflow: visible;
    z-index: 10000;
    white-space: nowrap;
}

.dropdown:hover .dropdown-menu,
.navbar .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.85rem 1.75rem;
    color: var(--dark-grey);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(200, 16, 46, 0.1), rgba(10, 42, 90, 0.05));
    transition: width 0.3s ease;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(200, 16, 46, 0.08), rgba(10, 42, 90, 0.05));
    color: var(--brand-primary);
    padding-left: 2.25rem;
    transform: translateX(5px);
}

.dropdown-menu a:hover::before {
    width: 4px;
}

.mobile-menu-toggle,
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer !important;
    padding: 0.75rem;
    z-index: 10001 !important;
    position: relative !important;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--brand-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--brand-secondary);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--brand-secondary);
}

/* ===== Hero Section ===== */
.slider,
.hero,
.banner {
    position: relative;
    z-index: 1;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
    padding-top: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    image-rendering: -webkit-optimize-contrast;
    transform: scale(1.05);
    filter: brightness(1) contrast(1.05) saturate(1.05);
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
    filter: brightness(1) contrast(1.05) saturate(1.05);
}

.hero-slide.zooming {
    transform: scale(1.08);
    transition: transform 0.6s ease-in-out;
}

@keyframes zoomIn {

    0%,
    100% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    position: relative;
}

/* Hero Navigation Buttons - Hidden */
.hero-nav-btn {
    display: none !important;
}

.hero-nav-btn:hover {
    background: var(--brand-secondary);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 30px rgba(200, 16, 46, 0.6);
    width: 75px;
    height: 75px;
}

.hero-nav-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 40px;
}

.hero-next {
    right: 40px;
}

/* Add arrow animation */
.hero-nav-btn i {
    transition: transform 0.3s ease;
}

.hero-prev:hover i {
    transform: translateX(-3px);
}

.hero-next:hover i {
    transform: translateX(3px);
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 1);
}

.hero-indicator.active {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    width: 40px;
    border-radius: 7px;
    box-shadow: 0 0 15px rgba(200, 16, 46, 0.6);
}

.hero-content {
    position: absolute;
    top: 55%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 3;
    text-align: left;
    color: var(--white);
    padding: 0;
    max-width: 600px;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    margin-top: 50px;
}

.hero-content.active {
    opacity: 1;
    visibility: visible;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow:
        0 2px 15px rgba(0, 0, 0, 0.9),
        0 4px 25px rgba(0, 0, 0, 0.7),
        0 6px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    display: block;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    text-align: left;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Simple shine effect for slider text */
.hero-title.typing,
.hero-description.typing {
    position: relative;
    overflow: hidden;
}

.hero-title.typing::before,
.hero-description.typing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shine 3s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    font-weight: 400;
    font-family: var(--font-primary);
    line-height: 1.8;
    color: #FFFFFF;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.85),
        0 4px 20px rgba(0, 0, 0, 0.65),
        0 6px 28px rgba(0, 0, 0, 0.45);
    position: relative;
    display: block;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    max-width: 550px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
}

.hero-right-text {
    position: absolute;
    bottom: 18%;
    right: 5%;
    z-index: 4;
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    max-width: 380px;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    animation: slideInRight 1s ease-out 0.6s both;
}

.hero-right-text:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
    border-color: var(--brand-secondary);
}

.hero-right-text p {
    color: var(--brand-primary);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-secondary) 0%, #FFD54F 100%);
    color: var(--brand-primary);
    border-color: var(--brand-secondary);
    box-shadow:
        0 6px 20px rgba(255, 193, 7, 0.4),
        0 2px 8px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.85rem 2rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-primary) 0%, rgba(45, 80, 22, 0.95) 100%);
    color: var(--white);
    border-color: var(--brand-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 35px rgba(45, 80, 22, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.8);
    border-width: 2px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: #FFFFFF;
}

.btn-outline:hover::after {
    left: 100%;
}

/* ===== About Section ===== */
.about-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--brand-light) 100%);
    padding: 100px 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-grey), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--text-grey);
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 42, 90, 0.15);
    min-height: 450px;
    background: var(--brand-light);
    transform: translateY(0);
    transition: var(--transition);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 42, 90, 0.1) 0%, rgba(200, 16, 46, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(10, 42, 90, 0.2);
}

.about-image:hover img {
    transform: scale(1.08);
}

.about-image:hover::before {
    opacity: 1;
}

/* ===== Services Grid ===== */
.services-section {
    background: linear-gradient(180deg, var(--brand-light) 0%, var(--white) 100%);
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-title {
    margin-bottom: 1rem;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-grey);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(45, 80, 22, 0.1);
    transform: translateY(0);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary));
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.5s ease;
    /* Removed infinite animation - only animate on hover */
}

.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(45, 80, 22, 0.15) 0%, rgba(255, 193, 7, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.7s ease, height 0.7s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow:
        0 20px 60px rgba(45, 80, 22, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7f0 100%);
}

.service-card:hover::before {
    transform: scaleX(1);
    animation: shimmer 2s infinite;
}

.service-card:hover::after {
    width: 400px;
    height: 400px;
}

.service-icon-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.1) 0%, rgba(45, 80, 22, 0.05) 100%);
    border-radius: 20px;
    font-size: 2.8rem;
    color: var(--brand-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--white);
    background: linear-gradient(135deg, var(--brand-primary) 0%, rgba(45, 80, 22, 0.9) 100%);
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--brand-primary);
}

.service-card p {
    color: var(--text-grey);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    min-height: 85px;
}

.service-link {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--brand-secondary);
    gap: 0.75rem;
}

.service-link:hover i {
    transform: translateX(5px);
}

.service-card:hover a {
    color: var(--brand-secondary);
    transform: translateX(5px);
}

.service-card:hover a i {
    transform: translateX(5px);
}

/* ===== Projects Section ===== */
.projects-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--brand-light) 100%);
    padding: 100px 0;
    position: relative;
}

.project-section-heading {
    color: var(--brand-primary) !important;
    margin: 2rem 0 3rem 0;
    font-size: 2rem;
    text-align: center;
    background: var(--white) !important;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: var(--font-heading);
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
    border: 2px solid var(--brand-primary);
}

.project-section-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
    background: var(--white);
    min-height: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.project-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: var(--brand-light);
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    display: none;
}

.project-info {
    color: var(--text-grey);
    width: 100%;
    background: var(--white);
    padding: 24px;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info::before {
    display: none;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1.4;
    text-shadow: none;
    letter-spacing: -0.2px;
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-grey);
    margin-bottom: 8px;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: none;
}

.project-info p:last-child {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.65;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-grey);
    font-weight: 400;
}

.project-info p strong {
    font-weight: 600;
    color: var(--brand-primary);
    text-shadow: none;
    font-size: 0.95rem;
    display: inline-block;
    margin-right: 6px;
    min-width: 60px;
}

/* ===== Clients Section ===== */
.clients-section {
    background: linear-gradient(180deg, var(--brand-light) 0%, var(--white) 100%);
    padding: 100px 0;
    position: relative;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    align-items: center;
    margin-top: 3rem;
    padding: 0 1rem;
}

.client-logo {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    filter: none;
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 80, 22, 0.1), transparent);
    transition: left 0.5s;
}

.client-logo:hover::before {
    left: 100%;
}

.client-logo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(45, 80, 22, 0.2);
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ed 100%);
}

.client-logo img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo:hover img {
    transform: scale(1.15);
}

/* ===== Client Logos Slider ===== */
.clients-slider-wrapper {
    position: relative;
    margin: 3rem 0;
    padding: 2rem 0;
    overflow-x: visible !important;
    overflow-y: visible !important;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 220px !important;
    background: transparent !important;
}

/* Temporarily show all logos without overflow hidden */
.clients-slider-wrapper .clients-slider {
    overflow: visible !important;
    width: auto !important;
    max-width: none !important;
}

/* Show scrollbar for debugging */
.clients-slider-wrapper::-webkit-scrollbar {
    height: 8px;
    display: block !important;
}

.clients-slider-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.clients-slider-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.clients-slider-wrapper:active {
    cursor: grabbing;
}

.clients-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2rem;
    will-change: transform;
    width: max-content !important;
    min-width: max-content !important;
    transition: none;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: relative !important;
}

.client-logo-slide {
    flex: 0 0 auto !important;
    min-width: 180px !important;
    max-width: 180px !important;
    width: 180px !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    position: relative !important;
    margin-right: 2rem !important;
}

/* Mobile responsive for client logos */
@media (max-width: 768px) {
    .clients-slider-wrapper {
        overflow-x: hidden !important;
        padding: 1.5rem 0 !important;
        margin: 2rem 0 !important;
    }

    .client-logo-slide {
        min-width: 130px !important;
        max-width: 130px !important;
        width: 130px !important;
        margin-right: 1.2rem !important;
    }

    .client-logo-slide .client-logo-inner {
        height: 130px !important;
        padding: 12px !important;
    }

    .client-logo-slide img {
        max-width: 95% !important;
        max-height: 95% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }
}

@media (max-width: 576px) {
    .clients-slider-wrapper {
        overflow-x: hidden !important;
        padding: 1rem 0 !important;
        margin: 1.5rem 0 !important;
    }

    .client-logo-slide {
        min-width: 140px !important;
        max-width: 140px !important;
        width: 140px !important;
        margin-right: 1rem !important;
    }

    .client-logo-slide .client-logo-page {
        width: 100% !important;
        height: 100% !important;
        overflow: visible !important;
    }

    .client-logo-slide .client-logo-inner {
        height: 140px !important;
        min-height: 140px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .client-logo-slide img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

.client-logo-slide .client-logo-page {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.client-logo-slide .client-logo-inner {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 180px !important;
    min-height: 180px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.client-logo-slide img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

/* Slider controls removed - using automatic slider */

.clients-slider-pause {
    background: var(--white);
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.15);
}

.clients-slider-pause:hover {
    background: var(--brand-primary);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.clients-slider-pause.playing i::before {
    content: "\f04c";
    /* pause icon */
}

.clients-slider-pause.paused i::before {
    content: "\f04b";
    /* play icon */
}

@keyframes slideClients {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

/* ===== Clients Page Specific Styles ===== */
.clients-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
    padding: 2rem 0;
}

.client-logo-page {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 220px;
    margin: 0 auto;
}

.client-logo-inner {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    filter: none;
}

.client-logo-inner.black-bg {
    background: #000000 !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
}

.client-logo-inner.black-bg:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
}

/* Client logo boxes - transparent background by default */
.client-logo-inner {
    background: transparent !important;
}

.client-logo-inner:hover {
    background: transparent !important;
}

/* Black background for specific transparent logos */
.client-logo-inner.black-bg {
    background: #000000 !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
}

.client-logo-inner.black-bg:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
}

.client-logo-inner img {
    filter: none !important;
}

.client-logo-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.client-logo-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.client-logo-page:hover .client-logo-inner::before {
    opacity: 0.05;
}

.client-logo-page:hover .client-logo-inner::after {
    width: 300px;
    height: 300px;
}

.client-logo-inner img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none !important;
    position: relative;
    z-index: 2;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.client-logo-page:hover .client-logo-inner {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 12px 32px rgba(45, 80, 22, 0.15);
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ed 100%);
}

.client-logo-page:hover .client-logo-inner img {
    transform: scale(1.15);
    filter: none !important;
}

/* ===== Certification & Clients Images ===== */
.cert-client-image {
    width: 500px;
    height: 500px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

/* ===== Footer ===== */
.footer {
    background: var(--brand-primary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
}

.social-links a:hover {
    background: var(--brand-secondary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--brand-secondary);
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.footer-credits {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-credits a {
    color: var(--brand-secondary);
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

/* ===== Scroll to Top ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--brand-secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top:hover {
    background: var(--brand-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top.show {
    display: flex;
}

/* ===== Page Hero Section ===== */
.page-hero {
    position: relative;
    height: 400px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
    background: transparent;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.page-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 1;
    z-index: 0;
}

/* Logistics Services page - move heading up */
.logistics-services-hero .page-hero-content {
    margin-top: 0px;
}

/* Well Head Maintenance page - move image down */
.well-head-maintenance-hero .page-hero-image {
    object-position: center top;
    transform: translateY(0);
    width: 100%;
    height: calc(100% + 20px);
    left: 0;
    top: -20px;
}

/* Mechanical Services page - move image down slightly */
.mechanical-services-hero .page-hero-image {
    object-position: center 20%;
    top: -30px;
    height: calc(100% + 30px);
}

.certificates-hero .page-hero-image {
    object-position: center top !important;
    top: -80px !important;
    height: calc(100% + 160px) !important;
    object-fit: cover !important;
    transform: translateY(0) !important;
    position: absolute !important;
    width: 100% !important;
    left: 0 !important;
}

.certificates-hero.page-hero {
    overflow: hidden !important;
    height: 350px !important;
    min-height: 350px !important;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 1.5rem 2rem;
    max-width: 800px;
    background: transparent;
    margin-top: 60px;
}

/* Contact page - no background */
.contact-hero .page-hero-content {
    background: transparent;
}

/* Contact page - show full image */
.contact-hero .page-hero-image {
    object-position: center center;
    transform: translateY(0);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.page-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.7),
        0 4px 15px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
    color: #ffffff;
    line-height: 1.2;
}

.page-hero-content p {
    font-size: 1rem;
    font-weight: 400;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    color: #ffffff;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-hero {
        height: 300px;
        min-height: 280px;
    }

    .page-hero-image {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-position: center center !important;
        transform: translateY(0) !important;
    }

    .page-hero-content {
        padding: 1.25rem 1.5rem;
        margin-top: 40px;
        max-width: 95%;
        background: transparent;
    }

    .contact-hero .page-hero-content {
        background: transparent;
    }

    .contact-hero .page-hero-image {
        top: 0 !important;
        height: 100% !important;
        object-position: center center !important;
    }

    .page-hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .page-hero-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .page-hero {
        height: 250px;
        min-height: 240px;
    }

    .page-hero-image {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-position: center center !important;
        transform: translateY(0) !important;
    }

    .page-hero-content {
        padding: 1rem 1.25rem;
        margin-top: 30px;
        max-width: 95%;
        background: transparent;
    }

    .contact-hero .page-hero-content {
        background: rgba(0, 0, 0, 0.92) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 1.25rem 1rem !important;
        margin-top: 20px !important;
    }

    .contact-hero .page-hero-image {
        top: 0 !important;
        height: 100% !important;
        object-position: center center !important;
    }

    .page-hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .page-hero-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Contact page mobile improvements */
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 1rem !important;
    }

    .contact-wrapper>div {
        width: 100%;
        padding: 0;
    }

    .contact-wrapper img[style*="height: 400px"] {
        height: 200px !important;
        margin: 1rem 0 !important;
    }

    .contact-wrapper h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .contact-wrapper div[style*="background: var(--brand-light)"] {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .contact-wrapper div[style*="background: var(--brand-primary)"] {
        padding: 1.5rem !important;
    }

    /* Form improvements for mobile */
    .contact-form {
        padding: 1.5rem !important;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
        padding: 1rem !important;
    }

    .form-group small {
        font-size: 0.8rem !important;
        margin-top: 0.5rem !important;
    }

    .form-group label {
        font-size: 0.9rem !important;
    }
}

/* ===== Page Content ===== */
.page-content {
    margin-top: 0;
    padding: 60px 0;
    background: var(--white);
}

/* Manpower & Equipment Combined Layout - Mobile Responsive */
@media (max-width: 768px) {
    .manpower-equipment-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .modern-card[style*="padding: 3rem"] {
        padding: 2rem 1.5rem !important;
    }
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--brand-secondary);
    font-weight: 600;
}

.content-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-section p {
    color: var(--text-grey);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.content-section ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    color: var(--text-grey);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* ===== Tables ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-grey);
}

.data-table thead {
    background: var(--brand-primary);
    color: var(--white);
}

.data-table th,
.data-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-grey);
}

.data-table tbody tr:hover {
    background: var(--brand-light);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Contact Form ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-grey);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-grey);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(10, 42, 90, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group small {
    display: block;
    color: var(--text-grey);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #C8102E;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ===== Modern Card Styles ===== */
.modern-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(45, 80, 22, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-primary));
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: shimmer 3s infinite;
}

.modern-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.modern-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(45, 80, 22, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(45, 80, 22, 0.2);
}

.modern-card:hover::before {
    transform: scaleX(1);
    animation: shimmer 2s infinite;
}

.modern-card:hover::after {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
}

.glass-card:hover::before {
    left: 100%;
}

.gradient-card {
    background: linear-gradient(135deg, var(--brand-primary) 0%, rgba(45, 80, 22, 0.95) 100%);
    color: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow:
        0 12px 40px rgba(45, 80, 22, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.25) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.gradient-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gradient-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(45, 80, 22, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.gradient-card:hover::before {
    transform: scale(1.2);
}

.gradient-card:hover::after {
    opacity: 1;
}

/* ===== Parallax Effect ===== */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ===== Image Hover Effects ===== */
.image-hover-effect {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-hover-effect img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) contrast(1);
}

.image-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.image-hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 2;
}

.image-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(45, 80, 22, 0.25),
        0 8px 24px rgba(0, 0, 0, 0.15);
}

.image-hover-effect:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1) contrast(1.1);
}

.image-hover-effect:hover::before {
    opacity: 1;
}

.image-hover-effect:hover::after {
    width: 200%;
    height: 200%;
}

/* ===== Number Counter Animation ===== */
.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

/* ===== Section Dividers ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-grey), transparent);
    margin: 4rem 0;
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    /* Removed blur effect - it was causing visual scroll issues */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Service cards should not have blur effect */
.service-card.reveal,
.service-card.fade-in,
.service-card {
    filter: blur(0) !important;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Enhanced animations for different elements */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.reveal-fade.active {
    opacity: 1;
}

/* ===== About Page Specific Styles ===== */
.org-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.org-card:hover {
    cursor: pointer;
}

/* ===== Vision & Mission Page Styles ===== */
.value-card {
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

/* ===== Image Optimization ===== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ===== Loading States ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== Print Styles ===== */
@media print {

    .navbar,
    .footer,
    .scroll-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* ===== Accessibility ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-primary);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ===== Focus Styles ===== */
*:focus {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--brand-secondary);
    outline-offset: 2px;
}

/* ===== Responsive Design ===== */

/* ===== Large Desktop (1400px and above) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .cert-client-image {
        width: 600px;
        height: 600px;
    }
}

/* ===== Desktop (1200px - 1399px) ===== */
@media (min-width: 1200px) and (max-width: 1399px) {
    .cert-client-image {
        width: 550px;
        height: 550px;
    }
}

/* ===== Laptop (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .container {
        padding: 0 20px;
        max-width: 100%;
    }

    .cert-client-image {
        width: 500px;
        height: 500px;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ===== Tablet & Small Laptop (768px - 968px) ===== */
@media (max-width: 968px) {
    .hero-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: 20px;
    }

    .nav-menu,
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: #ffffff !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: 4px 0 40px rgba(0, 0, 0, 0.15);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 10000 !important;
        border-right: 1px solid rgba(10, 42, 90, 0.1);
        transform: translateX(-100%);
    }

    .nav-menu.active {
        display: block;
        transform: translateX(0);
    }

    .nav-menu::after,
    .mobile-menu::after {
        display: none !important;
        content: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .nav-menu.active::after,
    .mobile-menu.active::after {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
    }

    .nav-menu.active {
        display: block;
        transform: translateX(0);
    }

    .nav-menu li,
    .mobile-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(10, 42, 90, 0.08);
        opacity: 1 !important;
        transform: translateX(0);
        animation: none;
        filter: none !important;
    }

    .nav-menu.active li,
    .mobile-menu.active li {
        opacity: 1 !important;
        filter: none !important;
    }

    .nav-link {
        display: block;
        padding: 1.25rem 1rem;
        font-size: 1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
        transition: all 0.3s ease;
        opacity: 1 !important;
        filter: none !important;
        color: var(--dark-grey) !important;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        background: linear-gradient(90deg, rgba(200, 16, 46, 0.1), rgba(10, 42, 90, 0.05));
        transition: width 0.3s ease;
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        width: 4px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--brand-primary);
        padding-left: 1.5rem;
        transform: translateX(5px);
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(45, 80, 22, 0.05) !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 0;
        border: none;
        border-left: 4px solid transparent;
        display: none;
        width: 100%;
        left: 0 !important;
        top: auto !important;
    }

    .dropdown.active .dropdown-menu,
    .dropdown.open .dropdown-menu,
    .has-dropdown.open .dropdown-menu {
        display: block !important;
        max-height: 500px;
        border-left-color: var(--brand-secondary);
    }

    .dropdown>.nav-link,
    .has-dropdown>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown>.nav-link i,
    .has-dropdown>a i {
        transition: transform 0.3s ease;
        font-size: 0.8rem;
    }

    .dropdown.open>.nav-link i,
    .dropdown.active>.nav-link i,
    .has-dropdown.open>a i {
        transform: rotate(180deg);
    }

    .dropdown-menu li {
        width: 100% !important;
        border-bottom: 1px solid rgba(10, 42, 90, 0.05) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .dropdown-menu li:last-child {
        border-bottom: none !important;
    }

    .dropdown-menu a {
        padding: 0.9rem 1rem 0.9rem 2.5rem !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        display: block !important;
        color: var(--dark-grey) !important;
        opacity: 1 !important;
        text-transform: none !important;
        letter-spacing: 0.3px;
        position: relative;
        transition: all 0.3s ease;
    }

    .dropdown-menu a::before {
        content: '→';
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--brand-secondary);
        font-size: 0.8rem;
        opacity: 0.7;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 193, 7, 0.1) !important;
        color: var(--brand-primary) !important;
        padding-left: 2.75rem !important;
    }

    .dropdown-menu a:hover::before {
        opacity: 1;
        left: 1.25rem;
    }

    .mobile-menu-toggle,
    .hamburger {
        display: flex !important;
        z-index: 10001 !important;
        position: relative !important;
        pointer-events: auto !important;
        -webkit-tap-highlight-color: transparent;
        cursor: pointer !important;
        user-select: none;
        -webkit-user-select: none;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
    }

    .mobile-menu-toggle span,
    .hamburger span {
        pointer-events: none;
    }

    .hero {
        height: 85vh;
        min-height: 550px;
    }

    .hero-content {
        left: 5%;
        transform: translateY(-50%);
        max-width: 90%;
        top: 55%;
        text-align: left;
        margin-top: 40px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        padding: 0;
        text-align: left;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        padding: 0;
        letter-spacing: 1.5px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-right-text {
        bottom: 15%;
        right: 3%;
        max-width: 300px;
        padding: 1.5rem 2rem;
    }

    .hero-right-text p {
        font-size: 0.95rem;
    }

    .hero-subtitle {
        font-size: 1.75rem;
        padding: 0.75rem 1.5rem;
        letter-spacing: 1.5px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        order: -1;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .project-card {
        min-height: 380px;
    }

    .project-image {
        min-height: 380px;
    }

    .project-info {
        padding: 24px;
    }

    .project-info h3 {
        font-size: 1.6rem;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .contact-wrapper>div {
        width: 100%;
    }

    .contact-wrapper img[style*="height: 400px"] {
        height: 250px !important;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }

    .cert-client-image {
        width: 400px;
        height: 400px;
    }
}

/* ===== Tablet (576px - 768px) ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .navbar .container {
        overflow: visible;
    }

    .section {
        padding: 60px 0;
    }



    .navbar {
        padding: 0;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .navbar.scrolled .logo-img {
        height: calc(var(--header-height-scrolled) + 140px);
        max-height: 580px;
        max-width: 1650px;
    }

    .nav-wrapper {
        padding: 0.6rem 0;
        min-height: 65px;
        align-items: center;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
        z-index: 1;
    }

    .nav-wrapper .mobile-menu-toggle {
        z-index: 10000 !important;
        position: relative !important;
        pointer-events: auto !important;
    }

    :root {
        --header-height: 75px;
        --header-height-scrolled: 70px;
        --header-width: 95%;
    }

    .navbar {
        width: var(--header-width);
        max-width: var(--header-width);
    }

    .hero {
        margin-top: var(--header-height);
    }





    .logo,
    .logo-link {
        display: flex;
        align-items: center;
    }


    .navbar.scrolled .nav-wrapper {
        padding: 0.3rem 0;
        min-height: var(--header-height-scrolled);
    }



    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.3rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-icon {
        width: 75px;
        height: 75px;
        font-size: 2.3rem;
    }

    .service-card {
        padding: 2rem;
        min-height: 300px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .section-header .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1.2rem;
        padding: 0 0.5rem;
    }

    .client-logo {
        height: 120px;
        padding: 1.5rem 1rem;
    }

    .client-logo img {
        max-height: 70px;
    }

    .clients-page-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .client-logo-page {
        max-width: 180px;
    }

    .client-logo-inner {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .client-logo-inner img {
        max-height: 80px;
    }

    .clients-slider-wrapper {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }

    .clients-slider {
        gap: 1.5rem;
        animation-duration: 35s;
    }

    .client-logo-slide {
        min-width: 150px;
        max-width: 150px;
    }

    .clients-slider-controls {
        margin-top: 2rem;
    }

    .clients-slider-pause {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }

    .project-card {
        min-height: 400px;
    }

    .project-image {
        height: 220px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.35rem;
        margin-bottom: 10px;
    }

    .project-info p {
        font-size: 0.9rem;
        margin-bottom: 7px;
        line-height: 1.6;
    }

    .project-info p strong {
        font-size: 0.9rem;
        min-width: 55px;
    }

    .project-info p:last-child {
        font-size: 0.85rem;
        margin-top: auto;
        padding-top: 10px;
    }

    .cert-client-image {
        width: 350px;
        height: 350px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image img {
        width: 100%;
        height: auto;
    }

    .project-section-heading {
        font-size: 1.75rem;
        padding: 1.25rem 1.75rem;
    }
}






/* ===== Mobile (up to 576px) ===== */
@media (max-width: 576px) {
    .hero {
        height: 75vh;
        min-height: 450px;
        margin-top: 60px;
    }

    .container {
        padding: 0 12px;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .navbar .container {
        overflow: visible !important;
        padding: 0 12px;
    }

    .navbar {
        overflow: visible;
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .nav-wrapper {
        min-height: 60px;
        padding: 0.5rem 0;
        overflow: visible;
        width: 100%;
        max-width: 100%;
        position: relative;
        z-index: 1;
    }

    .nav-wrapper .mobile-menu-toggle {
        z-index: 10000 !important;
        position: relative !important;
        pointer-events: auto !important;
    }

    :root {
        --header-height: 90px;
        --header-height-scrolled: 85px;
        --header-width: 100%;
    }

    .navbar {
        width: var(--header-width);
        max-width: var(--header-width);
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .hero {
        margin-top: var(--header-height);
    }



    .logo-text {
        display: none;
    }

    .navbar.scrolled .nav-wrapper {
        min-height: var(--header-height-scrolled);
        padding: 0.25rem 0;
    }

    .logo {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        flex-shrink: 1 !important;
    }

    .logo-link {
        height: auto !important;
        max-height: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 20000 !important;
    }

    .nav-menu {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.25rem;
        letter-spacing: 0.3px;
    }

    .nav-menu {
        width: 90%;
        padding: 4rem 1.5rem 2rem;
    }

    .nav-link {
        padding: 1rem 0.75rem;
        font-size: 0.95rem;
    }

    .hero-nav-btn {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .hero-prev {
        left: 20px;
    }

    .hero-next {
        right: 20px;
    }

    .hero-nav-btn:hover {
        width: 60px;
        height: 60px;
    }

    .hero-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .hero-indicator {
        width: 8px;
        height: 8px;
    }

    .hero-indicator.active {
        width: 24px;
    }

    .hero-content {
        left: 5%;
        transform: translateY(-50%);
        max-width: 85%;
        top: 55%;
        text-align: left;
        padding: 0;
        margin-top: 30px;
    }

    .hero-title {
        font-size: 1.4rem;
        padding: 0;
        line-height: 1.3;
        text-align: left;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        text-align: left;
        max-width: 100%;
        line-height: 1.6;
    }

    .hero-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        font-size: 0.8rem;
        padding: 0.65rem 1.25rem;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        padding: 0;
        letter-spacing: 1.5px;
        text-align: left;
    }

    .hero-right-text {
        display: none;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
        letter-spacing: 1px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
        padding: 0 1rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.85rem;
    }

    .service-card,
    .project-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
        min-height: auto;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }

    .page-content {
        padding: 30px 0;
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 12px;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        padding: 0;
    }

    .client-logo {
        height: 100px;
        padding: 1.2rem 0.8rem;
        border-radius: 12px;
    }

    .client-logo img {
        max-height: 60px;
    }

    .clients-page-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1.2rem;
        padding: 1rem 0;
    }

    .client-logo-page {
        max-width: 160px;
    }

    .client-logo-inner {
        padding: 1.8rem 1.2rem;
        border-radius: 14px;
    }

    .client-logo-inner img {
        max-height: 70px;
    }

    .client-logo-page:hover .client-logo-inner {
        transform: translateY(-8px) scale(1.03);
    }

    .clients-slider-wrapper {
        margin: 1.5rem 0;
        padding: 1rem 0;
    }

    .clients-slider {
        gap: 1rem;
        animation-duration: 30s;
    }

    .client-logo-slide {
        min-width: 120px;
        max-width: 120px;
    }

    .clients-slider-controls {
        margin-top: 1.5rem;
    }

    .logo-img {
        height: 80px;
    }

    .clients-slider-pause {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .logo-text-arabic {
        font-size: 0.85rem;
    }

    .logo-text-wrapper {
        gap: 1px;
    }



    .page-content {
        margin-top: 60px;
        padding: 40px 0;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .data-table thead,
    .data-table tbody,
    .data-table tr,
    .data-table th,
    .data-table td {
        display: block;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-grey);
        border-radius: 8px;
        padding: 1rem;
        background: var(--white);
    }

    .data-table td {
        border: none;
        padding: 0.5rem 0;
        text-align: left;
    }

    .data-table td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: var(--brand-primary);
    }

    .cert-client-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-width: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        width: 100%;
        height: auto;
    }

    .project-card {
        min-height: 380px;
    }

    .project-image {
        height: 200px;
    }

    .project-info {
        padding: 18px;
    }

    .project-info h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
        line-height: 1.35;
    }

    .project-info p {
        font-size: 0.875rem;
        margin-bottom: 6px;
        line-height: 1.6;
    }

    .project-info p:last-child {
        font-size: 0.825rem;
        margin-top: auto;
        padding-top: 10px;
    }

    .project-info p strong {
        font-size: 0.875rem;
        min-width: 50px;
    }

    .project-section-heading {
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
        margin: 1.5rem 0 2rem 0;
    }
}

/* ===== Global Horizontal Scroll Prevention ===== */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body>* {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
    display: block;
}

table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll on all sections */
section,
div,
article,
aside,
header,
footer,
main,
nav {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    /* Hide any scrollbars */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

section::-webkit-scrollbar,
div::-webkit-scrollbar,
article::-webkit-scrollbar,
aside::-webkit-scrollbar,
header::-webkit-scrollbar,
footer::-webkit-scrollbar,
main::-webkit-scrollbar,
nav::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Container fixes */
.container {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Grid and flex fixes */
[class*="grid"],
[style*="grid"] {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== Comprehensive Responsive Fixes for All Pages ===== */

/* Tablet and below - General fixes */
@media (max-width: 992px) {

    /* All grid layouts become single column */
    .services-grid,
    .projects-grid,
    .clients-grid,
    .certifications-grid,
    .manpower-equipment-grid,
    .about-content,
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Content sections */
    .content-section h2 {
        font-size: 1.75rem;
    }

    .content-section h3 {
        font-size: 1.35rem;
    }

    .content-section p {
        font-size: 1rem;
    }

    /* Page hero adjustments */
    .page-hero {
        height: 300px;
    }

    .page-hero-content h1 {
        font-size: 2rem;
    }

    /* Modern cards */
    .modern-card {
        padding: 2rem 1.5rem !important;
    }
}

/* Mobile - Additional fixes */
@media (max-width: 768px) {

    /* Ensure all images are responsive */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* All grid layouts */
    [class*="grid"],
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Content sections */
    .content-section {
        margin-bottom: 2.5rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .content-section h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .content-section p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .content-section ul {
        margin-left: 1.5rem;
    }

    /* Tables - Make scrollable */
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .data-table thead {
        display: table-header-group;
    }

    .data-table tbody {
        display: table-row-group;
    }

    .data-table tr {
        display: table-row;
    }

    .data-table th,
    .data-table td {
        display: table-cell;
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Page content padding */
    .page-content {
        padding: 40px 0;
    }

    /* Section padding */
    .section {
        padding: 40px 0;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
    }

    /* Cards */
    .service-card,
    .project-card,
    .modern-card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem;
    }

    /* Image containers */
    .image-hover-effect,
    .about-image,
    [style*="height: 400px"] {
        margin: 1rem 0 !important;
    }

    [style*="height: 400px"] {
        height: 250px !important;
    }

    /* Text sizes */
    .section-title {
        font-size: 1.75rem !important;
    }

    .section-subtitle {
        font-size: 0.95rem !important;
    }
}

/* Small mobile - Extra small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .content-section h2 {
        font-size: 1.35rem;
    }

    .content-section h3 {
        font-size: 1.15rem;
    }

    .content-section p {
        font-size: 0.9rem;
    }

    .page-hero {
        height: 250px;
    }

    .page-hero-content h1 {
        font-size: 1.5rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.35rem;
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .service-card,
    .project-card,
    .modern-card {
        padding: 1.25rem !important;
    }
}

/* Large screens - Desktop optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .content-section h2 {
        font-size: 2.25rem;
    }

    .content-section h3 {
        font-size: 1.75rem;
    }
}

/* Medium screens - Laptop optimizations */
@media (min-width: 992px) and (max-width: 1399px) {

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Comprehensive Mobile Responsive Styles ===== */

/* Tablet and below - General responsive fixes */
@media (max-width: 992px) {

    /* Container adjustments */
    .container {
        padding: 0 20px;
    }

    /* Typography scaling */
    .section-title {
        font-size: 2.25rem !important;
    }

    .section-subtitle {
        font-size: 1.1rem !important;
    }

    /* Grid layouts - 2 columns max */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Cards spacing */
    .modern-card,
    .service-card,
    .project-card {
        padding: 2rem 1.5rem !important;
    }

    /* About section */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .about-text h3 {
        font-size: 2rem !important;
    }

    /* Statistics section */
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {

    /* Base typography */
    html {
        font-size: 15px;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Sections */
    .section {
        padding: 50px 0 !important;
    }

    .page-content {
        padding: 30px 0 !important;
    }

    /* Typography */
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.75rem !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Hero section */
    .hero {
        height: 70vh !important;
        min-height: 500px !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
        padding: 0 1rem !important;
    }

    /* Page hero */
    .page-hero {
        height: 300px !important;
        min-height: 280px !important;
    }

    .page-hero-content h1 {
        font-size: 1.75rem !important;
    }

    /* All grids to single column */
    .services-grid,
    .projects-grid,
    .clients-grid,
    [style*="grid-template-columns: repeat(auto-fit"],
    [style*="grid-template-columns: repeat(2"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Cards */
    .service-card,
    .project-card,
    .modern-card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Content sections */
    .content-section {
        padding: 1.5rem 0 !important;
    }

    .content-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .content-section h3 {
        font-size: 1.25rem !important;
    }

    .content-section p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: auto !important;
        max-width: 100% !important;
        display: inline-block !important;
    }

    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    [style*="height: 400px"],
    [style*="height: 450px"],
    [style*="height: 500px"] {
        height: 250px !important;
    }

    /* About section mobile */
    .about-text h3 {
        font-size: 1.75rem !important;
    }

    .about-text p {
        font-size: 0.95rem !important;
    }

    /* Statistics section */
    .counter-number {
        font-size: 3rem !important;
    }

    /* Client slider */
    .clients-slider-wrapper {
        padding: 1rem 0 !important;
    }

    .client-logo-slide {
        min-width: 150px !important;
        max-width: 150px !important;
    }

    /* Forms */
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .form-group {
        margin-bottom: 1.5rem !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 0.95rem !important;
        padding: 0.75rem !important;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    /* Gradient cards */
    .gradient-card {
        padding: 2rem 1.5rem !important;
    }

    /* Certificates page */
    .certificates-grid {
        grid-template-columns: 1fr !important;
    }

    /* Manpower equipment grid */
    .manpower-equipment-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Small mobile - 576px and below */
@media (max-width: 576px) {

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Sections */
    .section {
        padding: 40px 0 !important;
    }

    .page-content {
        padding: 25px 0 !important;
    }

    /* Typography */
    .section-title {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.35rem !important;
    }

    h3 {
        font-size: 1.15rem !important;
    }

    /* Hero */
    .hero {
        height: 60vh !important;
        min-height: 400px !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
    }

    .hero-description {
        font-size: 0.85rem !important;
    }

    /* Page hero */
    .page-hero {
        height: 250px !important;
        min-height: 240px !important;
    }

    .page-hero-content {
        padding: 1rem 1.25rem !important;
        margin-top: 30px !important;
    }

    .page-hero-content h1 {
        font-size: 1.5rem !important;
    }

    /* Cards */
    .service-card,
    .project-card,
    .modern-card {
        padding: 1.25rem !important;
    }

    /* Content */
    .content-section h2 {
        font-size: 1.35rem !important;
    }

    .content-section p {
        font-size: 0.9rem !important;
    }

    /* Buttons */
    .btn {
        padding: 0.65rem 1.25rem !important;
        font-size: 0.85rem !important;
        width: 100% !important;
    }

    /* Statistics */
    .counter-number {
        font-size: 2.5rem !important;
    }

    /* Client slider */
    .client-logo-slide {
        min-width: 120px !important;
        max-width: 120px !important;
    }

    /* Images */
    [style*="height: 400px"],
    [style*="height: 450px"],
    [style*="height: 500px"] {
        height: 200px !important;
    }

    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 0.9rem !important;
        padding: 0.65rem !important;
    }

    /* Footer */
    .footer {
        padding: 40px 0 15px !important;
    }

    /* Gradient cards */
    .gradient-card {
        padding: 1.5rem 1rem !important;
    }

    /* About text */
    .about-text h3 {
        font-size: 1.5rem !important;
    }
}

/* Extra small mobile - 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .section-title {
        font-size: 1.35rem !important;
    }

    .hero-title {
        font-size: 1.35rem !important;
    }

    .page-hero-content h1 {
        font-size: 1.35rem !important;
    }

    .counter-number {
        font-size: 2rem !important;
    }

    .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.8rem !important;
    }

    /* Footer mobile */
    .footer {
        padding: 30px 0 15px !important;
    }

    .footer-content {
        gap: 1.5rem !important;
    }

    .footer-title {
        font-size: 1.5rem !important;
    }

    /* Client slider mobile */
    .clients-slider {
        gap: 1rem !important;
    }

    .client-logo-slide {
        min-width: 100px !important;
        max-width: 100px !important;
    }
}

/* Additional mobile fixes for specific components */
@media (max-width: 768px) {

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    .footer-links,
    .footer-contact {
        text-align: center !important;
    }

    /* Statistics grid */
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Certificates page */
    [style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(auto-fit, minmax(280px"] {
        grid-template-columns: 1fr !important;
    }

    /* Client slider controls */
    .clients-slider-controls {
        margin-top: 1.5rem !important;
        gap: 0.75rem !important;
    }

    .clients-slider-prev,
    .clients-slider-next {
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }

    /* Image hover effects */
    .image-hover-effect {
        margin: 1.5rem 0 !important;
    }

    /* Gradient cards */
    .gradient-card h2 {
        font-size: 1.5rem !important;
    }

    .gradient-card p {
        font-size: 0.95rem !important;
    }

    /* Modern cards with padding */
    [style*="padding: 3rem"],
    [style*="padding: 3.5rem"] {
        padding: 2rem 1.5rem !important;
    }

    /* Text alignment fixes */
    [style*="text-align: center"] {
        text-align: center !important;
    }

    /* Max-width containers */
    [style*="max-width: 1000px"],
    [style*="max-width: 1200px"],
    [style*="max-width: 1400px"] {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
}

@media (max-width: 576px) {

    /* Statistics - single column on small mobile */
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    .footer-title {
        font-size: 1.35rem !important;
    }

    .footer-heading {
        font-size: 1.1rem !important;
    }

    /* Social links */
    .social-links {
        justify-content: center !important;
    }

    /* Certificates grid */
    [style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Client logo page */
    .client-logo-page {
        max-width: 100% !important;
    }

    .client-logo-inner {
        padding: 1.5rem 1rem !important;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh !important;
        min-height: 500px !important;
    }

    .page-hero {
        height: 350px !important;
    }
}

/* Print styles */
@media print {

    .navbar,
    .footer,
    .btn,
    .hero-nav-btn,
    .mobile-menu-toggle {
        display: none !important;
    }

    .page-content {
        padding: 20px 0;
    }

    .content-section {
        page-break-inside: avoid;
    }
}