/* ==========================================================================
   EASTSEAS TRADING EST. - PREMIUM BRAND STYLESHEET
   ========================================================================== */

/* 1. DESIGN SYSTEM VARIABLES */
:root {
    --primary: #283890;         /* Blue: Official Brand Blue - main branding, navbar, buttons */
    --primary-light: #00AEEF;   /* Cyan: sailboat light sail - hover effects, highlights, icons */
    --primary-dark: #1C2866;    /* Dark Navy: premium footer sections */
    --accent: #F15A24;          /* Orange: sailboat hull - CTA buttons, active states, accents */
    --accent-hover: #D83E0A;    /* Darker orange for CTA hover states */
    --accent-light: #EAF6FD;    /* Soft Tint Background (ice blue) */
    --text-dark: #111B3D;       /* Navy: Premium Typography Main Text */
    --text-light: #FFFFFF;      /* White for dark backgrounds */
    --text-muted: #667085;      /* Clean corporate slate gray for secondary text */
    --bg-light: #F8FAFC;        /* Soft White/Gray for modern corporate spacing */
    --bg-white: #FFFFFF;        /* Main background/cards */
    --border-color: #E2E8F0;    /* Clean modern gray border */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-headings: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -10px rgba(0,0,0,0.15), 0 15px 15px -10px rgba(0,0,0,0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
}

/* 2. BASE RESET & GENERAL STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* Remove blue tap flash on mobile */
}

a, button, [role="button"], input, select, textarea, label {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─────────────────────────────────────────────────────────────
   GLOBAL AMBIENT BACKGROUND (Scroll Reactive)
───────────────────────────────────────────────────────────── */

/* Faint Blueprint/Isometric Grid overlay */
.ambient-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: 100px 100px;
    background-image: 
        linear-gradient(to right, rgba(40, 56, 144, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(40, 56, 144, 0.02) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    opacity: 0.6;
}

/* Glowing Orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}
.orb-cyan {
    width: 600px; height: 600px;
    background: rgba(0, 174, 239, 0.8);
    top: 15%; left: -10%;
}
.orb-blue {
    width: 800px; height: 800px;
    background: rgba(40, 56, 144, 0.6);
    top: 45%; right: -15%;
}
.orb-orange {
    width: 500px; height: 500px;
    background: rgba(241, 90, 36, 0.4);
    top: 75%; left: 20%;
}

/* 3. LAYOUT SYSTEM */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 60px 0;
    position: relative;
}

/* Section Title decoration */
.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* 4. BUTTONS & UI INTERACTIVES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px; /* Use pill shape to match navbar style */
    transition: var(--transition-smooth);
    cursor: pointer;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid transparent; /* To prevent jumping */
}

/* Base Hover Effect (Navbar Style) */
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: inherit;
    z-index: -1;
}

.btn:hover::after {
    transform: scale(1);
}

.btn:hover {
    transform: translateY(-2px);
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(40, 56, 144, 0.2);
}
.btn-primary::after {
    background-color: var(--primary-light);
}
.btn-primary:hover {
    color: var(--text-light);
    box-shadow: 0 6px 16px rgba(0, 174, 239, 0.35);
}

/* CTA Button */
.btn-cta {
    background-color: var(--accent);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(241, 90, 36, 0.25);
}
.btn-cta::after {
    background-color: var(--primary-light); /* Hover turns to bright blue/cyan */
}
.btn-cta:hover {
    color: var(--text-light);
    box-shadow: 0 6px 16px rgba(0, 174, 239, 0.4);
}

/* Secondary Button */
.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}
.btn-secondary::after {
    background-color: var(--bg-white);
}
.btn-secondary:hover {
    color: var(--primary);
    border-color: var(--bg-white);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15);
}

/* Outline Blue Button */
.btn-outline-blue {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline-blue::after {
    background-color: var(--primary);
}
.btn-outline-blue:hover {
    color: var(--text-light);
    box-shadow: 0 6px 16px rgba(40, 56, 144, 0.2);
}

/* 5. HEADER & NAVIGATION */
header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scrolled state for Header */
header.scrolled,
header.mobile-menu-active {
    background-color: rgba(28, 40, 102, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sleek Topbar */
.topbar {
    background-color: rgba(28, 40, 102, 0.4);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

header.scrolled .topbar {
    margin-top: -45px;
    opacity: 0;
    pointer-events: none;
}

.topbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1440px;
}

.topbar-info {
    display: flex;
    gap: 20px;
}

.topbar-info span,
.topbar-info a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    opacity: 0.85;
    transition: var(--transition-fast);
}

.topbar-info a:hover {
    opacity: 1;
    color: var(--text-light);
}

.topbar-info span i,
.topbar-info a i {
    color: var(--accent);
}

.topbar-social {
    display: flex;
    gap: 15px;
}

.topbar-social a {
    color: var(--text-muted);
}

.topbar-social a:hover {
    color: var(--accent);
}

/* Navbar */
.navbar {
    padding: 18px 0;
    transition: var(--transition-smooth);
}

header.scrolled .navbar {
    padding: 12px 0;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-smooth);
}

.logo a:hover {
    transform: translateY(-1px);
}

.nav-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition-smooth);
}

.brand-separator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arabic-brand {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.english-brand {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.25;
    letter-spacing: 0.6px;
}

.english-brand .thin {
    font-weight: 300;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 50px;
    transition: var(--transition-smooth);
    overflow: hidden;
    z-index: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--primary-light);
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    z-index: -1;
}

.nav-links a:hover {
    color: #fff;
    border-color: var(--primary-light);
}

.nav-links a:hover::after {
    transform: scale(1);
}

.nav-links a.active {
    color: #fff;
    border-color: var(--accent);
}

.nav-links a.active::after {
    transform: scale(1);
    background-color: var(--accent);
}

.mobile-contact-info {
    display: none !important;
}

/* Nav toggle for mobile */
.nav-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-toggle:hover {
    color: var(--primary-light);
}

/* 6. HERO SECTION */
.hero {
    background: linear-gradient(135deg, rgba(28, 40, 102, 0.88) 0%, rgba(40, 56, 144, 0.85) 100%), url('../images/banner/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 7. ABOUT PREVIEW SECTION */
.about-preview {
    background-color: transparent;
    text-align: center;
}

.about-preview .container {
    max-width: 900px;
}

.about-preview h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.about-preview h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    margin: 8px auto 0 auto;
}

.about-preview p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-top: 20px;
}

.about-preview .container > div {
    margin-top: 30px;
}

/* 8. CATEGORIES SECTION */
.categories {
    background-color: transparent;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    text-align: center;
    height: 100%;
}

.category-card img {
    margin-bottom: 16px;
    transition: var(--transition-smooth);
    max-height: 120px;
    object-fit: contain;
}

.category-card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: auto;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 174, 239, 0.4);
}

.category-card:hover img {
    transform: scale(1.08);
}

/* 9. CONTACT CTA SECTION */
.contact-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 60px 0;
}

.contact-cta.cta-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.contact-cta h2 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-cta p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 10. SUBPAGE BANNER */
.page-banner {
    background: linear-gradient(135deg, rgba(28, 40, 102, 0.9) 0%, rgba(40, 56, 144, 0.85) 100%), url('../images/banner/hero-bg.png');
    background-size: cover;
    background-position: center;
    padding: 130px 0 50px 0;
    color: var(--text-light);
    text-align: center;
}

.page-banner h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    font-size: 1.1rem;
    margin-top: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 11. ABOUT PAGE DETAILS */
.about-intro-section {
    background-color: var(--bg-white);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-story-content {
    animation: fadeInLeft 1s ease;
}

.badge-premium {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 174, 239, 0.25);
}

.story-title {
    font-size: 2.75rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
}

.story-lead {
    font-size: 1.25rem;
    color: var(--primary-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.story-body {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-image-wrapper {
    position: relative;
    animation: fadeInRight 1s ease;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 12px;
    z-index: 1;
    transition: var(--transition-smooth);
}

.about-image-wrapper img {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    object-fit: cover;
    width: 100%;
    height: 480px;
}

.about-image-wrapper:hover img {
    transform: translate(-10px, -10px);
}

.about-image-wrapper:hover::before {
    transform: translate(10px, 10px);
}

/* Vision, Mission & Values Section */
.vmv-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.vmv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* Consolidated Card Base Styles for VMV and Values Card */
.vmv-card,
.value-card {
    background-color: var(--bg-white);
    padding: 45px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.vmv-card::before,
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0.8;
}

.vmv-card::before {
    background-color: var(--accent);
}

.value-card::before {
    background-color: var(--primary-light);
}

.vmv-card:hover,
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 174, 239, 0.3);
}

.vmv-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.vmv-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.vmv-card:hover .vmv-icon,
.value-card:hover .vmv-icon {
    background-color: var(--accent);
    color: var(--bg-white);
    transform: scale(1.1);
}

.vmv-header h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vmv-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.value-card {
    padding: 45px;
    margin-top: 30px;
}

.value-card .vmv-header {
    margin-bottom: 25px;
}

.value-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 500;
}

.values-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px 30px;
}

.values-list-grid > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.98rem;
}

.values-list-grid > div > i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Trust Pillars Section */
.trust-pillars-section {
    background-color: var(--bg-white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: -30px auto 50px auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    background-color: var(--bg-white);
    padding: 50px 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border-top: 5px solid var(--primary-light);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.02) 0%, rgba(40, 56, 144, 0.02) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--accent);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon-box {
    background-color: var(--accent);
    color: var(--bg-white);
    transform: scale(1.1) rotate(5deg);
}

.pillar-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Specialized Product Domains Grid */
.specialty-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.specialty-card {
    background-color: var(--bg-white);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    gap: 20px;
}

.specialty-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 174, 239, 0.4);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-light);
}

.specialty-icon-box {
    font-size: 2rem;
    color: var(--accent);
    transition: var(--transition-smooth);
    margin-top: 3px;
}

.specialty-card:hover .specialty-icon-box {
    transform: scale(1.15);
    color: var(--primary);
}

.specialty-info h3 {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.specialty-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Global Sourcing Section */
.global-sourcing {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #06122c 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.global-sourcing::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.global-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.global-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.25;
}

.global-content h2 span {
    color: var(--accent);
}

.global-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 300;
}

.global-content > div {
    margin-top: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 174, 239, 0.3);
    transform: translateY(-5px);
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.75;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 12. SERVICES PAGE DETAILS */
.services-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-box {
    background-color: var(--bg-white);
    padding: 30px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.service-box:hover::before {
    background-color: var(--accent);
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 174, 239, 0.2);
}

.service-box h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-box p {
    color: var(--text-muted);
}

/* 13. PRODUCTS & FILTER STYLES */
.category-filter {
    background-color: var(--bg-light);
    padding: 30px 24px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border-color);
}

.category-filter h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 15px;
    width: 100%;
    margin-bottom: 10px;
}

.category-filter a {
    padding: 8px 18px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.category-filter a:hover,
.category-filter a.active {
    background-color: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.products-catalog-section .products-container {
    margin-top: 40px;
}

.no-products-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background-color: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.no-products-container i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.no-products-container p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.no-products-simple {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.product-not-found-container {
    padding: 100px 0;
    text-align: center;
}

.product-not-found-container .btn {
    margin-top: 20px;
}

.related-products .section-subtitle {
    margin-bottom: 45px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 174, 239, 0.3);
}

.product-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    background-color: #fafafa;
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    padding: 16px 16px 8px 16px;
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0 16px 16px 16px;
    flex-grow: 1;
}

.product-card a {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: var(--bg-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

/* 14. PRODUCT DETAILS PAGE STYLES */
.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.product-detail-image-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.product-detail-image-box:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.product-detail-image-box img {
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    width: 100%;
}

.product-detail-info {
    padding: 10px 0;
}

.product-detail-category {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 174, 239, 0.2);
}

.product-detail-info h2 {
    font-size: 2.25rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.product-detail-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 35px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.inquiry-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 140, 126, 0.35);
}

.related-products {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 80px 0;
}

.related-products h2 {
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.related-products h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* 15. CONTACT SECTION & FORM */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.20fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 50px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.15) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.contact-info h2 {
    font-size: 2.25rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.85;
    margin-bottom: 40px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-icon {
    width: 52px;
    height: 52px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.info-item:hover .info-icon {
    background-color: var(--primary-light);
    color: var(--text-light);
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.4);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 4px;
}

.info-text a, 
.info-text p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.info-text a:hover {
    color: var(--primary-light);
}

.contact-social-block {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.contact-social-block span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    display: block;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--text-light);
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(241, 90, 36, 0.4);
}

.contact-form {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-form h2 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 15px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: var(--transition-smooth);
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: var(--bg-white);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.15);
}

.contact-form textarea {
    height: 180px;
    resize: vertical;
}

/* 16. FOOTER STYLING */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 80px 0 0 0;
    border-top: 4px solid var(--accent);
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    padding: 0 5%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-col h3 span {
    color: var(--primary-light);
}

.footer-unified-logo {
    max-height: 150px; /* Increased from 110px for a bigger presence */
    width: auto;
    object-fit: contain;
    margin-bottom: 30px; /* More breathing room */
    display: block;
    /* Removed the border, box-shadow, and background container */
}

.footer-col h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
    margin-top: 8px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.85); /* Brightened from muted gray */
    margin-bottom: 15px;
}

.footer-col.footer-about p {
    line-height: 1.7;
    max-width: 400px;
}

.footer-col.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col.footer-links a {
    color: rgba(255, 255, 255, 0.85); /* Brightened from muted gray */
    font-weight: 500;
}

.footer-col.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-col.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-col.footer-contact p i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-link:hover {
    color: var(--primary-light);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 25px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7); /* Brightened from muted gray */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 5%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.developer-brand {
    font-family: 'Alfa Slab One', 'Arial Black', sans-serif;
    font-size: 0.85rem;
    font-weight: normal;
    letter-spacing: 0.5px;
    color: #ffffff;
    transition: var(--transition-smooth);
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

.developer-brand:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

/* 17. INFINITE SCROLLING MARQUEE (OUR CLIENTS) */
.clients-marquee-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 50px 0 35px 0; /* Reduced bottom padding to compensate for container padding */
    overflow: hidden;
    position: relative;
}

.clients-marquee-section .section-title {
    margin-bottom: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    position: relative;
    letter-spacing: -0.5px;
}

.clients-marquee-section .section-title::after {
    display: none; /* Hide the heavy section underline banner */
}

.clients-marquee-section .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 20px auto; /* Reduced bottom margin to compensate for container padding */
    font-size: 1rem;
    line-height: 1.5;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    gap: 30px;
    padding: 15px 0; /* Prevents card translation, scale, and box-shadow clipping */
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-light), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-light), transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    animation: scroll-marquee 45s linear infinite;
    flex-shrink: 0;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-logo-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 50px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
    width: 180px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.marquee-logo-card.wide {
    width: 250px;
}

.marquee-logo-card img {
    max-height: 45px;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.marquee-logo-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(40, 56, 144, 0.06);
    border-color: var(--primary-light);
    background-color: var(--bg-white);
}

.marquee-logo-card:hover img {
    transform: scale(1.04);
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 30px));
    }
}

@media (max-width: 768px) {
    .marquee-container::before,
    .marquee-container::after {
        width: 60px;
    }
    .marquee-container {
        padding: 10px 0; /* Prevents card clipping on hover on mobile */
    }
    .clients-marquee-section {
        padding: 35px 0 25px 0; /* Adjusted vertical padding */
    }
    .clients-marquee-section .section-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    .clients-marquee-section .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px; /* Reduced from 25px to compensate for container padding */
        padding: 0 15px;
    }
    .marquee-logo-card {
        height: 60px;
        width: 140px;
        padding: 6px 16px;
    }
    .marquee-logo-card.wide {
        width: 190px;
    }
    .marquee-logo-card img {
        max-height: 32px;
    }
}

/* 18. NEW CUSTOM STYLES FOR PREMIUM HOMEPAGE & SERVICES SECTIONS */

/* Why Choose Us / Strengths Section */
.why-choose-us {
    background-color: var(--bg-light);
    padding: 65px 0;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.strength-card {
    background-color: var(--bg-white);
    border-radius: 14px;
    padding: 30px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Card background image watermarks */
.strength-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18; /* Increased from 0.04 to make it clearly visible */
    filter: blur(1.5px); /* Soft blur */
    z-index: -2;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease;
}

.strength-card.card-sourcing::before {
    background-image: url('../images/advantages/global_sourcing.png');
}

.strength-card.card-delivery::before {
    background-image: url('../images/advantages/ontime_delivery.png');
}

.strength-card.card-quality::before {
    background-image: url('../images/advantages/premium_quality.png');
}

.strength-card.card-support::before {
    background-image: url('../images/advantages/customer_support.png');
}

.strength-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.03) 0%, rgba(40, 56, 144, 0.03) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.strength-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 174, 239, 0.3);
}

.strength-card:hover::before {
    opacity: 0.35; /* Increased from 0.12 to enhance visibility on hover */
    filter: blur(0px); /* Clear the blur on hover */
    transform: scale(1.08); /* Beautiful scale transition */
}

.strength-card:hover::after {
    opacity: 1;
}

.strength-icon {
    width: 52px;
    height: 52px;
    background-color: var(--accent-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 174, 239, 0.15);
}

.strength-card:hover .strength-icon {
    background-color: var(--primary);
    color: var(--text-light);
    transform: scale(1.08) rotate(3deg);
    border-color: var(--primary);
}

.strength-card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.strength-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Industries We Serve Section */
.industries-served {
    background-color: var(--bg-white);
    padding: 65px 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 35px;
}

.industry-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.industry-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 174, 239, 0.35);
}

.industry-image {
    height: 150px;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.65; /* Increased from 0.35 to make it clearly visible inside the header */
    filter: blur(1.5px); /* Soft blur for visual texture */
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease;
}

.card-oil .industry-image::before {
    background-image: url('../images/industries/oil_gas.png');
}

.card-construction .industry-image::before {
    background-image: url('../images/industries/construction.png');
}

.card-industrial .industry-image::before {
    background-image: url('../images/industries/industrial_mechanical.png');
}

.card-utilities .industry-image::before {
    background-image: url('../images/industries/utilities.png');
}

.industry-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 27, 61, 0.25) 0%, rgba(17, 27, 61, 0.75) 100%);
    z-index: 1;
}

.industry-image i {
    font-size: 2.5rem;
    color: var(--text-light);
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

.industry-card:hover .industry-image::before {
    transform: scale(1.1); /* Zoom effect */
    opacity: 0.85; /* Increased from 0.6 to bring out the details on hover */
    filter: blur(0px); /* Clear the blur on hover */
}

.industry-card:hover .industry-image i {
    transform: scale(1.1) translateY(-4px);
    color: var(--accent);
}

.industry-info {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.industry-info h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.industry-info p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Process Timeline on Services Page */
.process-section {
    background-color: var(--bg-light);
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.process-timeline {
    max-width: 900px;
    margin: 50px auto 0 auto;
    position: relative;
    padding-left: 50px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    border-radius: 2px;
}

.process-step {
    position: relative;
    margin-bottom: 50px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-node {
    position: absolute;
    left: -45px;
    top: 0;
    width: 33px;
    height: 33px;
    background-color: var(--bg-white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    box-shadow: 0 0 10px rgba(40, 56, 144, 0.2);
    z-index: 2;
    transition: var(--transition-smooth);
}

.process-step:hover .process-node {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(241, 90, 36, 0.4);
}

.process-content {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.process-content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 174, 239, 0.25);
}

.process-content h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.process-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Service Box Icon Styling */
.service-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 18px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 174, 239, 0.1);
}

.service-box:hover .service-icon {
    background-color: var(--primary);
    color: var(--text-light);
    transform: scale(1.08);
}

/* 19. SCROLL REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered Delay Utilities */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

/* Gentle scale up animation */
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* 20. RESPONSIVE DESIGN - MEDIA QUERIES */

@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-col.footer-about {
        grid-column: span 2;
    }
    
    .about-intro-grid,
    .global-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrapper img {
        height: 380px;
    }
    
    .pillars-grid,
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .topbar {
        display: none;
    }
    
    .nav-logo-img {
        height: 48px;
    }
    
    .brand-separator {
        height: 32px;
    }
    
    .arabic-brand {
        font-size: 0.88rem;
    }
    
    .english-brand {
        font-size: 0.75rem;
    }
    
    .nav-toggle {
        display: block;
        width: 32px;
        height: 22px;
        position: relative;
        cursor: pointer;
        z-index: 1001; /* Ensure it stays above the menu */
    }
    .hamburger {
        width: 100%;
        height: 100%;
        position: relative;
    }
    .hamburger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background-color: #fff;
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        transform-origin: center;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 9px; }
    .hamburger span:nth-child(3) { top: 18px; }

    header.mobile-menu-active .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    header.mobile-menu-active .hamburger span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    header.mobile-menu-active .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Keep logo visible and headers clean when mobile menu is active */
    .logo {
        position: relative;
        z-index: 1001;
    }
    
    header.mobile-menu-active {
        border-bottom-color: transparent;
        background-color: transparent !important;
        box-shadow: none;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    .nav-links {
        display: flex;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: radial-gradient(circle at center, rgba(24, 34, 89, 0.98) 0%, rgba(14, 20, 54, 0.99) 100%);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 120px 30px 40px 30px;
        box-shadow: var(--shadow-lg);
        align-items: center;
        justify-content: center;
        gap: 20px;
        overflow-y: auto;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        list-style: none;
        z-index: 1000;
    }
    
    /* Animation targets the <li> elements */
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        text-align: center;
        width: 100%;
    }

    .nav-links > li:not(.mobile-contact-info) > a {
        font-family: 'Alfa Slab One', var(--font-headings), serif;
        font-size: 2.5rem;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 2px;
        background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
        display: inline-block;
        position: relative;
        padding: 6px 0;
    }

    .nav-links > li:not(.mobile-contact-info) > a::after {
        display: none !important;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links.active > li:not(.mobile-contact-info) > a.active {
        background: linear-gradient(135deg, #F15A24 0%, #ff8a00 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        border: none;
    }

    /* Mobile Contact Info Layout */
    .mobile-contact-info {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
        width: 100%;
    }

    .mobile-separator {
        width: 60px;
        height: 2px;
        background: rgba(255, 255, 255, 0.1);
        margin: 15px 0;
        border-radius: 1px;
    }

    .mobile-contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 5px;
    }

    .mobile-contact-item {
        font-family: var(--font-main);
        font-size: 0.95rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.7);
        display: flex;
        align-items: center;
        gap: 8px;
        transition: var(--transition-fast);
    }
    
    .mobile-contact-item:hover {
        color: var(--primary-light);
    }

    .mobile-contact-item i {
        color: var(--accent);
    }

    /* Staggered Entry Animation */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li.mobile-contact-info { transition-delay: 0.35s; }

    /* Staggered Exit Animation */
    .nav-links li:nth-child(1) { transition-delay: 0.2s; }
    .nav-links li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links li:nth-child(3) { transition-delay: 0.1s; }
    .nav-links li:nth-child(4) { transition-delay: 0.05s; }
    .nav-links li:nth-child(5) { transition-delay: 0s; }
    .nav-links li.mobile-contact-info { transition-delay: 0s; }
}

/* Lock background scroll when mobile nav is open */
body.nav-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 160px 0 80px 0;
    }
    
    .page-banner {
        padding: 130px 0 60px 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    
    footer {
        padding: 50px 0 0 0;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 24px;
        margin-bottom: 35px;
    }
    
    .footer-col.footer-about {
        grid-column: span 1;
    }

    .footer-unified-logo {
        max-height: 90px;
        margin-bottom: 12px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 0 24px;
    }

    .footer-credit {
        text-align: center;
    }

    
    .contact-info {
        padding: 35px 25px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .story-title {
        font-size: 2.25rem;
    }
    
    .pillars-grid,
    .specialty-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-details-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-detail-image-box img {
        max-height: 300px;
    }
    
    .inquiry-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        padding-left: 35px;
    }
    
    .process-timeline::before {
        left: 10px;
    }
    
    .process-node {
        left: -35px;
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-logo-img {
        height: 38px;
    }

    .brand-separator {
        height: 24px;
        margin-right: 4px;
    }

    .arabic-brand {
        font-size: 0.7rem;
    }

    .english-brand {
        font-size: 0.55rem;
    }

    .logo a {
        gap: 6px;
    }
    
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
}

/* ==========================================================================
   SITE PRELOADER
   ========================================================================== */
#site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#site-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.boat-animation {
    animation: boatRock 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
    margin-bottom: -15px;
}

.boat-animation img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.sea-animation {
    width: 200px;
    height: 35px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 100%;
    background-size: 50% 100%;
}

.wave1 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 C150,60 150,20 300,20 C450,20 450,60 600,60 C750,60 750,20 900,20 C1050,20 1050,60 1200,60" fill="none" stroke="rgba(255,255,255,0.7)" stroke-width="4"/></svg>') repeat-x;
    background-size: 50% 100%;
    animation: waveMove 3s linear infinite;
}

.wave2 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,40 C150,40 150,0 300,0 C450,0 450,40 600,40 C750,40 750,0 900,0 C1050,0 1050,40 1200,40" fill="none" stroke="rgba(0,174,239,0.7)" stroke-width="3"/></svg>') repeat-x;
    background-size: 50% 100%;
    animation: waveMove 2.3s linear infinite reverse;
}

.wave3 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,80 C150,80 150,40 300,40 C450,40 450,80 600,80 C750,80 750,40 900,40 C1050,40 1050,80 1200,80" fill="none" stroke="rgba(255,255,255,0.3)" stroke-width="2"/></svg>') repeat-x;
    background-size: 50% 100%;
    animation: waveMove 4s linear infinite;
}

.preloader-text {
    font-family: var(--font-headings), "Outfit", sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 2px;
    color: #fff;
    animation: pulseText 1.5s infinite;
}

@keyframes boatRock {
    0% { transform: rotate(-10deg) translateY(0px); }
    100% { transform: rotate(10deg) translateY(-8px); }
}

@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: -100%; }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Simple Preloader for non-index pages */
.simple-preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--h-cyan, #00aeef);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
