@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    /* Ultra Premium Palette */
    --primary: #fb923c;
    /* Vibrant Sany Orange */
    --primary-glow: rgba(251, 146, 60, 0.4);
    --secondary: #ef4444;
    /* Tech Red */
    --accent: #6366f1;
    /* Deep Indigo for contrast */

    --bg-black: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);

    --text-main: #f8fafc;
    --text-dim: #94a3b8;

    --font-heading: 'Poppins', sans-serif;
    --font-main: 'Montserrat', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
}

/* --- Top Ticker Bar --- */
.top-ticker {
    background: linear-gradient(90deg, #020617, #0f172a, #020617);
    border-bottom: 1px solid rgba(251, 146, 60, 0.1);
    height: 35px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    transition: height 0.3s ease;
}

@media (max-width: 480px) {
    .top-ticker {
        height: 25px;
    }

    .ticker-item {
        font-size: 0.6rem;
    }

    #main-nav {
        top: 25px !important;
    }
}

.ticker-content {
    white-space: nowrap;
    animation: ticker-slide 30s linear infinite;
    display: flex;
    gap: 100px;
}

.ticker-item {
    color: var(--primary);
    /* Updated: Applied brand color to the ticker text */
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-spacing: 5px;
    /* Added word spacing as requested */
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item span {
    color: var(--primary);
}

@keyframes ticker-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Adjust Nav for Ticker */
#main-nav {
    top: 35px !important;
}

/* --- Ensure FontAwesome icons load with correct weight/family --- */
.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}


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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1.05rem;
    overflow-x: hidden;
    line-height: 1.8;
    /* Increased from 1.5/1.6 */
    /* Mesh Gradient Background */
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(20, 70%, 15%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 10%, 1) 0, transparent 50%);
}

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

p {
    line-height: 2.1;
    /* Extra generous for paragraphs */
    margin-bottom: 20px;
}

body.rtl {
    font-family: var(--font-ar);
    direction: rtl;
}

/* --- Multi-Language Content Visibility --- */
/* Hide all language-specific content by default */
[data-show-lang] {
    display: none !important;
}

/* Show content matching the current HTML lang attribute */
html[lang="en"] [data-show-lang="en"] {
    display: block !important;
}

html[lang="ar"] [data-show-lang="ar"] {
    display: block !important;
}

html[lang="zh"] [data-show-lang="zh"] {
    display: block !important;
}

/* --- RTL Sequence Fix --- */
body.rtl [data-i18n^="phone_"],
body.rtl [data-i18n^="ton_"],
body.rtl [data-i18n^="stat_"][data-i18n$="_title"],
body.rtl [data-i18n^="exp_"],
body.rtl .tonnage-badge {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block !important;
}

/* Ensure footer and contact numbers stay on the right side in RTL */
body.rtl .contact-text,
body.rtl .contact-sub-item {
    text-align: right !important;
}

body.rtl .contact-text span[data-i18n^="phone_"],
body.rtl .contact-sub-item p:not([data-i18n]) {
    display: block !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: right !important;
}

body.rtl .contact-sub-item p[data-i18n] {
    direction: rtl !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Premium Animations --- */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 30px var(--primary-glow);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
}

@keyframes reveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* --- Hero Section Upgrade --- */
.hero {
    min-height: 60vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 150px 5% 80px;
}

/* Ensure clean gap after hero */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        gap: 20px;
    }
}

.hero+.section {
    padding-top: 80px;
    margin-top: 0;
}

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

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.2);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-black) 90%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Layout Modules --- */
.leadership-grid {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 40px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-left: 5%;
    padding-right: 5%;
}

.leadership-grid::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.leadership-grid .glass-card {
    flex: 0 0 400px;
    min-width: 400px;
    scroll-snap-align: center;
}

@media (max-width: 768px) {
    .leadership-grid .glass-card {
        flex: 0 0 85%;
        min-width: 85%;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Specific Leadership Card Hover */
.leadership-grid .glass-card {
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.leadership-grid .glass-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.leadership-grid .glass-card img {
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.leadership-grid .glass-card:hover img {
    transform: scale(1.1);
}

.logistics-hub-inner {
    display: flex;
    align-items: center;
    gap: 80px;
}

.hub-grid {
    margin-top: 40px;
    display: flex;
    gap: 30px;
}

.advantage-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* Enhanced Advantage Image Styling */
.advantage-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 20px;
    pointer-events: none;
    transition: all 0.5s ease;
}

.advantage-img-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
}

.advantage-img-wrapper:hover::after {
    border-color: var(--primary);
    box-shadow: inset 0 0 50px rgba(251, 146, 60, 0.1);
}

.advantage-img-wrapper img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-img-wrapper:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .advantage-img-wrapper {
        margin: 0 auto;
        max-width: 500px;
    }
}


.hero-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
    animation: reveal 1s ease-out forwards;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    word-spacing: 4px;
    margin-bottom: 30px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff 0%, #64748b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    display: block;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

/* --- Glassmorphism Nav --- */
nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    padding: 25px 50px;
    border-radius: 100px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    top: 10px;
    width: 95%;
    background: rgba(2, 6, 23, 0.8);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 95px;
    /* Increased from 70px */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    display: none;
    /* Hide old text span if present */
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    /* SemiBold */
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    padding: 12px 24px;
    /* Added matching padding */
}

.nav-links a:hover {
    color: var(--primary);
    /* subtle glow text interaction optional but nice */
}

/* Base state for the sleek red/orange underline (Anti-Gravity effect) */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #fb923c);
    /* Red/Orange gradient */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Hover state triggers the left-to-right slide in */
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: #fff;
}

/* --- Cards & Grids --- */
.section {
    padding: 120px 5%;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

/* --- Square Fleet System --- */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 50px 0;
}

.square-card {
    aspect-ratio: 0.8 / 1;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.square-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
}

.card-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Force Square */
    overflow: hidden;
    background: #1e293b;
    position: relative;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.square-card:hover .card-img-box img {
    transform: scale(1.1);
}

.card-content-box {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.card-specs {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.tonnage-badge {
    background: rgba(251, 146, 60, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.8rem;
    border: 1px solid rgba(251, 146, 60, 0.3);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-premium {
    padding: 18px 40px;
    border-radius: 100px;
    background: var(--primary);
    color: var(--bg-black);
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s;
    border: none;
    box-shadow: 0 10px 30px var(--primary-glow);
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px var(--primary-glow);
    background: #fff;
}

/* Services Page Base Styles */
.safety-card {
    padding: 80px 60px;
}

.btn-card {
    padding: 10px 22px !important;
    font-size: 0.75rem !important;
    border-radius: 50px !important;
}

/* --- Ticker / Badge --- */
.pdo-badge-new {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 120px;
    height: 120px;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--primary));
    border-radius: 50%;
    padding: 3px;
    animation: float 4s ease-in-out infinite;
    z-index: 1000;
}

.pdo-badge-inner {
    background: var(--bg-black);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pdo-badge-inner span {
    font-size: 0.7rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
}

/* --- Ultra Premium Footer --- */
footer {
    background: linear-gradient(to top, #020617, #0f172a);
    border-top: 1px solid var(--glass-border);
    padding: 100px 5% 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

.footer-brand .logo {
    font-size: 2.5rem;
    margin-bottom: 25px;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 400px;
}

.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links ul li a::before {
    content: '→';
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-links ul li a:hover::before {
    opacity: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s;
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    color: var(--bg-black);
    transform: rotate(10deg);
}

.contact-text p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
}

.contact-text span {
    display: block;
    color: #fff;
    font-weight: 700;
    margin-top: 4px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 80px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--bg-black);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* --- Reviews Section --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: scale(1.02);
}

.stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 0.8rem;
}

.review-content {
    font-style: italic;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 25px;
}

.reviewer-info h5 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
}

.reviewer-info span {
    font-size: 0.8rem;
    color: var(--primary);
}

/* --- Strategic Advantage Section --- */
.advantage-box {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), transparent);
    border-left: 4px solid var(--primary);
    padding: 40px;
    border-radius: 0 20px 20px 0;
}

/* --- Partner Marquee --- */
.partner-marquee {
    overflow: hidden;
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    backdrop-filter: blur(5px);
}

.marquee-content {
    display: flex;
    gap: 120px;
    /* Massive gap between items */
    animation: marquee-scroll 35s linear infinite;
    white-space: nowrap;
    align-items: center;
}

.partner-name {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dim);
    letter-spacing: 5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: default;
    opacity: 0.6;
}

.partner-name:hover {
    color: var(--primary);
    transform: scale(1.1);
    opacity: 1;
    text-shadow: 0 0 20px var(--primary-glow);
}

.supplier-label {
    background: var(--primary);
    color: var(--bg-black);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 1000;
    letter-spacing: 1px;
    box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* --- Exhaustive Mobile Fixes (iPhone / Samsung) --- */
@media (max-width: 768px) {

    /* Adjusted ordering for Mobile Header */
    nav {
        width: 95%;
        padding: 12px 20px;
        top: 15px;
        border-radius: 20px;
        flex-wrap: wrap;
        /* Allow wrapping for menu buttons */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-burger {
        display: block !important;
        cursor: pointer;
        width: 25px;
        height: 20px;
        position: relative;
        z-index: 1001;
        order: 1;
        /* Force burger to the left side */
    }

    .logo {
        order: 2;
        /* Center logo relatively */
        margin: 0 auto;
    }

    .lang-selector-container {
        order: 3;
        /* Force translate button to the right side */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.98);
        border: 1px solid var(--glass-border);
        border-top: none;
        flex-direction: column;
        padding: 40px;
        border-radius: 0 0 30px 30px;
        gap: 25px;
        z-index: 1500;
        backdrop-filter: blur(20px);
        order: 4;
        /* Keep links at the bottom of the container when open */
    }

    .nav-links.active {
        display: flex;
        animation: fadeInDown 0.4s ease forwards;
    }

    .mobile-burger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        margin-bottom: 6px;
        transition: 0.3s;
    }

    .mobile-burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-burger.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 20px !important;
        text-align: center;
    }

    .hero-title span {
        display: block !important;
        font-size: 0.85em;
        margin-top: 8px;
        color: var(--primary);
    }

    .hero-tagline {
        font-size: 0.7rem !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 5px 15px;
        border-radius: 20px;
    }

    .hero-content p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin: 20px auto 30px !important;
    }

    .hero {
        min-height: 80vh;
        padding-top: 140px;
        padding-bottom: 40px;
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-content {
        padding: 45px 25px;
        background: rgba(8, 12, 24, 0.7);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        width: 92%;
        max-width: 450px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center !important;
    }


    .grid-3,
    .footer-container,
    .grid-gallery,
    .contact-grid,
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center !important;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr;
    }


    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
    }

    .hero-cta a {
        width: 100% !important;
        max-width: 280px;
        margin: 0 !important;
        text-align: center !important;
    }

    .logistics-hub-inner,
    .advantage-inner {
        flex-direction: column !important;
        gap: 40px !important;
        text-align: center !important;
        align-items: center !important;
    }

    .logistics-hub-inner h2,
    .advantage-inner h2 {
        font-size: 2.8rem !important;
        text-align: center !important;
        margin: 20px auto !important;
        width: 100%;
    }

    .hub-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 20px;
        width: 100%;
    }

    .logistics-hub-inner>div,
    .advantage-inner>div {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Fixed floating cards on mobile */
    .glass-card[style*="bottom: -40px"] {
        position: static !important;
        margin-top: 20px !important;
        transform: rotate(0deg) !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    /* Centralize Lists on Mobile */
    ul {
        padding: 0;
        display: inline-block;
        text-align: left;
        /* Keep text left-aligned inside a centered block for readability */
    }

    .section p,
    .glass-card p {
        margin-inline: auto;
    }

    footer {
        text-align: center !important;
    }

    .footer-container>div {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-links h4::after,
    .footer-contact h4::after,
    .footer-newsletter h4::after {
        left: 50% !important;
        transform: translateX(-50%);
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
    }

    .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center !important;
        text-align: center !important;
        gap: 10px;
    }


    header.section,
    .section:first-of-type {
        padding-top: 120px !important;
    }

    .section {
        padding: 80px 5%;
    }

    #hoist-cable {
        display: none;
        /* Cables look cluttered on tiny screens */
    }

    .glass-card {
        padding: 30px;
    }

    /* Form and contact adjustments */
    .premium-form-container {
        padding: 30px 20px;
    }

    .contact-card-v2 {
        padding: 30px 20px;
        text-align: center !important;
    }

    .premium-input-group {
        text-align: left !important;
        /* Keep form labels left for usability */
    }

    .btn-premium {
        display: inline-flex;
        margin-inline: auto;
        padding: 15px 30px !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        max-width: 300px;
    }

    .btn-card {
        width: auto !important;
        padding: 10px 20px !important;
        font-size: 0.7rem !important;
    }

    .card-footer {
        gap: 12px !important;
        justify-content: center !important;
    }


    /* About Us Page Mobile fixes */
    .about-overview-inner {
        flex-direction: column !important;
        gap: 60px !important;
        text-align: center !important;
    }

    .about-overview-inner>div {
        min-width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-overview-inner h2 {
        font-size: 2.2rem !important;
        margin-bottom: 20px !important;
    }

    .mission-vision-grid {
        width: 100%;
        margin-top: 30px !important;
    }

    .mission-vision-grid .glass-card {
        padding: 30px 20px !important;
    }

    .mission-vision-grid,
    .group-companies-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .group-companies-grid>div {
        padding: 20px !important;
    }

    .about-overview-inner .glass-card {
        transform: none !important;
        width: 100%;
    }

    .experience-badge {
        width: 100px !important;
        height: 100px !important;
        top: -30px !important;
        right: -10px !important;
    }

    .experience-badge span:first-child {
        font-size: 1.5rem !important;
    }

    /* Speed up and optimize Heavy Equipment Suppliers marquee for mobile */
    .marquee-content {
        animation: marquee-scroll 8s linear infinite !important;
        gap: 30px !important;
    }

    .partner-name {
        font-size: 1.5rem !important;
        /* Smaller size to fit screen better */
        letter-spacing: 2px !important;
    }

    .supplier-label {
        font-size: 0.8rem !important;
        padding: 8px 15px !important;
    }

    /* Ensure leadership grid is horizontal on mobile */
    .leadership-grid {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        gap: 20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .leadership-grid .glass-card {
        flex: 0 0 85% !important;
        min-width: 85% !important;
    }

    .advantage-box {
        border-left: none !important;
        border-bottom: 4px solid var(--primary);
        border-radius: 20px !important;
        padding: 30px 20px !important;
        text-align: center !important;
        margin-bottom: 30px;
    }

    /* Center Fleet Card Content on Mobile */
    .card-content-box {
        text-align: center !important;
    }

    .card-footer {
        justify-content: center !important;
        flex-wrap: wrap;
        /* Ensure stacking on very small screens */
    }
}


/* Hide burger on desktop */
.mobile-burger {
    display: none;
}

/* --- Contact Page Specific --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.premium-form-container {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.premium-form-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.3;
}

.premium-input-group {
    margin-bottom: 25px;
}

.premium-input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.premium-input {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.4s;
    outline: none;
}

.premium-input option {
    background-color: #0f172a;
    color: #fff;
    padding: 10px;
}

.premium-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.premium-input::placeholder {
    color: #475569;
}

.contact-card-v2 {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.4s;
    height: 100%;
    overflow: visible !important;
}

.contact-card-v2:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-10px);
}

.map-container-v2 {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 100%;
    min-height: 400px;
}

/* --- Floating WhatsApp Button --- */
.floating-whatsapp {
    position: fixed;
    bottom: 120px;
    /* Above the PDO badge */
    right: 40px;
    background: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp img {
    width: 32px !important;
    height: 32px !important;
}

.floating-whatsapp span {
    font-size: 0.9rem;
}

.contact-sub-item {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible !important;
}

.contact-sub-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* --- Language Selector --- */
.lang-selector-container {
    position: relative;
    display: inline-block;
}

.lang-selector-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lang-selector-btn:hover {
    border-color: var(--primary);
    background: rgba(251, 146, 60, 0.1);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    min-width: 140px;
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown-content.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.lang-dropdown-content a {
    color: var(--text-dim);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: left;
}

body.rtl .lang-dropdown-content a {
    text-align: right;
}

.lang-dropdown-content a:hover {
    background: rgba(251, 146, 60, 0.1);
    color: var(--primary);
}

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

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

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 25px;
        right: 15px;
        padding: 10px;
        width: 65px;
        height: 65px;
        justify-content: center;
        border-radius: 50%;
    }

    .floating-whatsapp img {
        width: 45px !important;
        height: 45px !important;
    }

    .floating-whatsapp span {
        display: none;
    }

    .pdo-badge-new {
        bottom: 85px;
        right: 15px;
        width: 65px;
        height: 65px;
    }

    .pdo-badge-inner span {
        font-size: 0.5rem;
    }

    /* Stats Mobile */
    .stat-card {
        padding: 30px !important;
    }

    /* Leadership Cards */
    .glass-card[style*="border-bottom"] {
        max-width: 100% !important;
    }

    /* Lang Selector Mobile - Order now managed in main nav flex settings */
    .lang-selector-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
    }

    .logo img {
        height: 70px !important;
        /* Increased for Tablets */
    }

    /* Section titles */
    .section h2 {
        font-size: 2.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 35px !important;
        letter-spacing: -0.5px !important;
        word-spacing: 3px !important;
    }

    .section h3 {
        font-size: 1.85rem !important;
        line-height: 1.4 !important;
        word-spacing: 2px !important;
    }

    /* Mobile Spacing Fix for Hero + Section */
    .hero {
        padding: 180px 5% 40px !important;
        /* Increased top padding from 120px to 180px */
        min-height: auto !important;
    }

    .hero:has(.hero-visual) {
        min-height: 100vh !important;
        /* Keep full height only for home page hero */
    }

    .hero+.section {
        padding-top: 40px !important;
    }

    .section {
        padding: 60px 0 !important;
    }

    /* Footer Logo Mobile Adjustments */
    .footer-brand .logo img {
        height: 120px !important;
        margin-bottom: 25px;
        margin-top: 40px !important;
        /* Increased to 40px to push it even further down away from icons */
    }

    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Services Page Mobile Adjustments */
    .safety-card {
        padding: 40px 20px !important;
    }

    .safety-card h2 {
        font-size: 2rem !important;
    }

    .tech-specs-grid {
        text-align: center !important;
        grid-template-columns: 1fr !important;
        padding-top: 40px !important;
    }

    .tech-specs-grid>div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* --- Services Page Specific Styles --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.step-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(251, 146, 60, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--bg-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 25px;
    box-shadow: 0 0 30px var(--primary-glow);
}

.step-item h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #fff;
}

.step-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.6;
}

/* --- About Us Page Specific --- */
.about-overview-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
    flex-wrap: wrap;
}

.mission-vision-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.group-companies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    text-align: left;
}

.experience-badge {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotate(-10deg);
    box-shadow: 0 10px 30px var(--primary-glow);
    z-index: 10;
}

.featured-service-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.9));
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary);
    padding: 60px;
    border-radius: 24px;
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 80px;
}

.featured-content {
    flex: 1;
}

.featured-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.featured-visual {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.featured-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .featured-service-card {
        flex-direction: column;
        padding: 40px;
    }

    .featured-visual {
        width: 100%;
        height: 300px;
    }
}

/* Extra Small Screen Fixes (iPhone SE / Older Samsung) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
    }

    .hero-tagline {
        font-size: 0.6rem !important;
        letter-spacing: 1.2px !important;
        line-height: 1.4 !important;
    }

    .logo {
        font-size: 1.2rem !important;
    }

    .section h2 {
        font-size: 1.8rem !important;
    }

    .floating-whatsapp {
        bottom: 20px !important;
        right: 15px !important;
        width: 65px !important;
        height: 65px !important;
        padding: 10px !important;
    }

    .logo img {
        height: 70px !important;
        /* Increased from 55px to 70px */
    }
}

/* QR Codes Styling */
/* Permanent QR Display */
.qr-preview {
    display: block;
    margin: 10px auto;
    width: 140px;
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.qr-preview img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.qr-preview span {
    display: block;
    color: #000000;
    font-size: 0.65rem;
    margin-top: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .qr-preview {
        width: 120px;
    }
}