/* ==========================================================================
   Al SBL for Oil & Gas - Global Styling & UI System
   ========================================================================== */

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

:root {
    /* Color Palette */
    --primary-color: #0f2b46;       /* Deep Navy */
    --primary-light: #1b4965;       /* Steel Blue */
    --accent-color: #d62828;        /* Crimson Red */
    --accent-hover: #b31e1e;
    --dark-color: #121212;          /* Rich Charcoal Black */
    --dark-surface: #1e1e1e;        /* Dark Grey for Cards */
    --light-color: #ffffff;
    --light-bg: #f8f9fa;            /* Soft light grey */
    --light-border: rgba(0, 0, 0, 0.08);
    --dark-border: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #f9fafb;
    --text-light-muted: #d1d5db;

    /* Typography */
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
    
    /* UI System Settings */
    --font-family: var(--font-en);
    --header-height: 80px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --glass-bg: rgba(15, 43, 70, 0.85);
    --glass-blur: blur(12px);
    
    /* Layout */
    --container-width: 1280px;
}

/* RTL Settings */
[dir="rtl"] {
    --font-family: var(--font-ar);
}

/* ==========================================================================
   Basics & Resets
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

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

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Typography Helpers */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px auto;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-normal);
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 40, 40, 0.3);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 43, 70, 0.3);
}

.btn-outline {
    border: 2px solid var(--light-color);
    color: var(--light-color);
}

.btn-outline:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-dark {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgb(15 43 70);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: background-color var(--transition-normal);
}

.header.scrolled {
    background-color: rgb(8 26 43);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light-color);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light-muted);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--light-color);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

[dir="rtl"] .nav-link::after {
    right: 0;
    left: auto;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Nav list marker/bullet color */
.nav-menu li::marker {
    color: #d1d5db;
}

/* Language and Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--light-color);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.lang-switch:hover {
    background: var(--accent-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 24px;
    justify-content: center;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-color);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: scale(1.05);
    animation: zoomBackground 25s infinite alternate;
}

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

.hero-bg-layer.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 43, 70, 0.45), rgba(18, 18, 18, 0.95));
    z-index: 2;
}

@keyframes zoomBackground {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 22px;
    background-color: var(--accent-color);
    border-left: 6px solid var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(214, 40, 40, 0.25);
    transition: var(--transition-normal);
}

[dir="rtl"] .hero-tag {
    border-left: none;
    border-right: 6px solid var(--primary-color);
    letter-spacing: normal;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-company-name {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--light-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff 40%, var(--text-light-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

[dir="rtl"] .hero-company-name {
    letter-spacing: 0;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: var(--light-color);
}

.hero-company-desc {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 24px;
    color: #f3f4f6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Home Page Feature Cards
   ========================================================================== */
.features-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    padding-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 20px;
}

.feature-main {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.feature-main h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-main p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.feature-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--light-border);
    opacity: 0;
    transform: translateY(30px);
    animation: featureCardIn 0.5s ease forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.05s; }
.feature-card:nth-child(3) { animation-delay: 0.10s; }
.feature-card:nth-child(4) { animation-delay: 0.15s; }
.feature-card:nth-child(5) { animation-delay: 0.20s; }
.feature-card:nth-child(6) { animation-delay: 0.25s; }

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(15, 43, 70, 0.07);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: scale(1.1);
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: center;
}

/* ==========================================================================
   About Page & Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-bullets {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-bullet-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.about-bullet-item svg {
    color: var(--accent-color);
}

.about-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-img-box {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.about-img-box:hover img {
    transform: scale(1.05);
}

.about-img-large {
    grid-row: span 2;
    height: 450px;
}

.about-img-small {
    height: 215px;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.value-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-border);
    transition: all var(--transition-normal);
}

.value-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.value-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 700;
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-border);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.service-card:hover .service-img img {
    transform: scale(1.08);
}

.service-body {
    padding: 35px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.service-card-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-normal);
}

.service-card-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}

.service-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.service-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 280px;
}

.service-more {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    display: inline-block;
    transition: all var(--transition-normal);
}

.service-more:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Highlighted Service Card (Red background for General Construction) */
.service-card.highlighted {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.service-card.highlighted .service-body {
    background-color: var(--accent-color);
    color: var(--light-color);
}

.service-card.highlighted .service-card-icon {
    color: var(--light-color);
}

.service-card.highlighted .service-body h4 {
    color: var(--light-color);
}

.service-card.highlighted .service-body p {
    color: rgba(255, 255, 255, 0.85);
}

.service-card.highlighted .service-more {
    color: var(--light-color);
}

.service-card.highlighted .service-more:hover {
    color: var(--light-color);
    opacity: 0.8;
    border-bottom-color: var(--light-color);
}

.service-more:hover {
    gap: 10px;
}

.service-card-wide {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.service-card-wide .service-body {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card-wide .service-img {
    flex: 1;
    height: 100%;
    min-height: 280px;
}

/* Chemical Supplies (Dark section) */
.chem-section {
    background-color: #0b1f32;
    color: var(--light-color);
}

.chem-section .section-title {
    color: var(--light-color);
}

/* Chemicals V2 Layout */
.chem-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.chem-tab-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-color);
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.chem-tab-btn.active {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.chem-tab-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.chem-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.chem-card-v2 {
    background: transparent;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.chem-card-v2:hover {
    transform: translateY(-5px);
}

.chem-card-v2 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.chem-card-v2 h5 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 6px;
}

.chem-card-v2 p {
    color: var(--text-light-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Projects Showcase
   ========================================================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 30px;
    background-color: var(--light-color);
    border: 1px solid var(--light-border);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

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

.project-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-border);
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card:hover .project-img img {
    transform: scale(1.08);
}

.project-status {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

[dir="rtl"] .project-status {
    right: auto;
    left: 16px;
}

.project-status.ongoing {
    background-color: #ffe8cc;
    color: #e8590c;
}

.project-status.completed {
    background-color: #d3f9d8;
    color: #2b8a3e;
}

.project-body {
    padding: 30px;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.project-body h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.project-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--light-border);
    padding-top: 16px;
}

/* ==========================================================================
   Photo Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 43, 70, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    padding: 20px;
    text-align: center;
    color: var(--light-color);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-icon {
    font-size: 1.75rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.gallery-overlay h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.gallery-overlay span {
    font-size: 0.75rem;
    color: var(--text-light-muted);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    border: 3px solid rgba(255, 255, 255, 0.15);
    background-color: #fff;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--light-color);
    font-size: 2.5rem;
    background: none;
    z-index: 2001;
}

[dir="rtl"] .lightbox-close {
    right: auto;
    left: 30px;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-color);
    font-size: 1.125rem;
    text-align: center;
    z-index: 2001;
}

/* ==========================================================================
   Certificates Page
   ========================================================================== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.cert-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-border);
    text-align: center;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.cert-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #f1f3f5;
    border: 1px solid var(--light-border);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    cursor: pointer;
}

.cert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.cert-card:hover .cert-img-container img {
    transform: scale(1.08);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 43, 70, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-img-container:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay-icon {
    color: #fff;
    font-size: 1.5rem;
    background: var(--accent-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.cert-img-container:hover .cert-overlay-icon {
    transform: translateY(0);
}

.cert-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cert-card p {
    color: var(--text-muted);
    font-size: 0.825rem;
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
}

.cert-details {
    text-align: left;
    margin: 15px 0;
    font-size: 0.75rem;
    border-top: 1px solid var(--light-border);
    border-bottom: 1px solid var(--light-border);
    padding: 12px 0;
}

[dir="rtl"] .cert-details {
    text-align: right;
}

.cert-details-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}

.cert-details-item:last-child {
    margin-bottom: 0;
}

.cert-details-label {
    color: var(--text-muted);
    font-weight: 500;
}

.cert-details-value {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}

[dir="rtl"] .cert-details-value {
    text-align: left;
}

.cert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    background-color: var(--primary-color);
    color: #fff !important;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
    margin-top: auto;
}

.cert-btn:hover {
    background-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.cert-btn span {
    font-size: 1rem;
}

/* ==========================================================================
   News Page & Grid
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-border);
    transition: all var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-img {
    height: 220px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-body {
    padding: 30px;
}

.news-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
}

.news-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.news-link {
    font-weight: 600;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-link:hover {
    gap: 10px;
}

/* ==========================================================================
   HSE Section
   ========================================================================== */
.hse-hero {
    background-color: #0b1f32;
    color: var(--light-color);
    padding: 100px 0;
    background-image: linear-gradient(rgba(11, 31, 50, 0.85), rgba(11, 31, 50, 0.95)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hse-hero h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hse-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light-muted);
}

.hse-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

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

.hse-stat-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-border);
}

.hse-stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

.hse-stat-label {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
}

.hse-policy-list {
    margin-top: 24px;
}

.hse-policy-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.hse-policy-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(214, 40, 40, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.hse-policy-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.hse-policy-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.contact-card-box {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-border);
}

.contact-card-box h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    background-color: rgba(15, 43, 70, 0.05);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.info-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.map-container {
    height: 350px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
    border: 1px solid var(--light-border);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(15, 43, 70, 0.15), rgba(15, 43, 70, 0.25)), url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-align: center;
    padding: 24px;
}

.map-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 300px;
}

.map-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.map-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    border-top: 4px solid var(--accent-color);
}

.footer-top {
    padding: 80px 0 50px 0;
}

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

.footer-desc {
    color: var(--text-light-muted);
    margin: 20px 0 24px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}


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

.footer-link {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-link:hover {
    color: var(--light-color);
    padding-left: 6px;
}

[dir="rtl"] .footer-link:hover {
    padding-left: 0;
    padding-right: 6px;
}

.footer-bottom {
    background-color: #0b0b0b;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

.footer-credits a {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-credits a:hover {
    text-decoration: underline;
}

.admin-login-link {
    font-weight: 600;
    color: var(--text-light-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-login-link:hover {
    color: var(--light-color);
}

/* ==========================================================================
   Modals & Overlays (Login Modal)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--light-border);
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-weight: 700;
    font-size: 1.25rem;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--light-color);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px;
}

.modal-error {
    background-color: #ffe3e3;
    border: 1px solid #ffa8a8;
    color: #e03131;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
}

/* ==========================================================================
   Administration Dashboard
   ========================================================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background-color: var(--light-bg);
}

.admin-sidebar {
    background-color: #0b1f32;
    color: var(--light-color);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

[dir="rtl"] .admin-sidebar {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-sidebar-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
}

.admin-sidebar-header span {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.admin-sidebar-menu {
    flex-grow: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-light-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.admin-menu-item:hover, .admin-menu-item.active {
    color: var(--light-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.admin-menu-item.active {
    border-left: 4px solid var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
}

[dir="rtl"] .admin-menu-item.active {
    border-left: none;
    border-right: 4px solid var(--accent-color);
}

.admin-sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-logout-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--border-radius);
    background-color: rgba(214, 40, 40, 0.15);
    color: #ff8787;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-logout-btn:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
}

.admin-main {
    padding: 40px;
    overflow-y: auto;
    max-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--light-border);
    padding-bottom: 20px;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.admin-header-actions {
    display: flex;
    gap: 12px;
}

/* Admin Form & Fields Styling */
.admin-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    border: 1px solid var(--light-border);
    margin-bottom: 30px;
}

.admin-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-border);
}

.admin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.general-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Bilingual Inputs */
.bilingual-group {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 24px;
}

.bilingual-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dynamic List CRUD Tables */
.admin-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

[dir="rtl"] .admin-table {
    text-align: right;
}

.admin-table th {
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-weight: 700;
    padding: 14px 20px;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--light-border);
}

.admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--light-border);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.admin-actions-cell {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.btn-icon-edit {
    background-color: rgba(15, 43, 70, 0.05);
    color: var(--primary-color);
}

.btn-icon-edit:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-icon-delete {
    background-color: rgba(214, 40, 40, 0.05);
    color: var(--accent-color);
}

.btn-icon-delete:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
}

/* Image preview box in admin forms */
.admin-img-preview {
    width: 100%;
    height: 180px;
    border-radius: var(--border-radius);
    border: 2px dashed #ced4da;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.admin-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    gap: 8px;
}

/* ==========================================================================
   Responsive & Adaptive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-grid, .projects-grid, .news-grid, .certificates-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-grid, .hse-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img-large {
        height: 350px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-company-name {
        font-size: 3rem !important;
    }
    
    .hero-company-desc {
        font-size: 1.4rem !important;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card-wide {
        flex-direction: column !important;
    }
    .service-card-wide .service-body {
        padding: 30px;
    }
    .service-card-wide .service-img {
        min-height: 220px !important;
        order: -1;
    }
    
    /* Header menu mobile layout */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: #0b1f32;
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        gap: 24px;
        transition: all var(--transition-normal);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    [dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        border-right: none;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    [dir="rtl"] .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hamburger animation when open */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .features-grid, .services-grid, .projects-grid, .news-grid, .certificates-grid, .chem-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none;
    }
    
    .admin-row, .general-settings-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-company-name {
        font-size: 2.3rem !important;
    }
    
    .hero-company-desc {
        font-size: 1.1rem !important;
        margin-bottom: 16px;
    }
    
    .btn {
        width: 100%;
    }
    
    .about-bullets {
        grid-template-columns: 1fr;
    }
}

/* --- SBL Animated Logo Styles --- */
.logo-official-animated {
    position: relative;
    /* Default size in header (cropped ratio 221x174) - Larger Size! */
    width: 85px;
    height: 67px; 
    display: inline-block;
    overflow: visible;
    perspective: 400px;
    transform-style: preserve-3d;
}

/* Make it larger in footer */
.footer .logo-official-animated {
    width: 120px;
    height: 95px;
    margin-bottom: 8px;
}

/* Rings/orbit layer (renders in the background with 3D animation) */
.logo-rings-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transform-origin: 50% 50%;
    animation: floatRings3D 7s ease-in-out infinite;
    transition: filter 0.4s ease;
    will-change: transform, filter;
}

/* On hover, rings sway and pulsate with an intense red glow */
.logo-official-animated:hover .logo-rings-layer {
    animation: floatRingsHover3D 3.5s ease-in-out infinite, redGlowPulse 2s ease-in-out infinite;
}

/* Text layer (renders in the foreground, static with 3D Z-index pop) */
.logo-text-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: filter 0.4s ease, transform 0.4s ease;
    transform: translateZ(10px);
    will-change: filter, transform;
}

/* On hover, text pops forward and glows in solid blue */
.logo-official-animated:hover .logo-text-layer {
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.9));
    transform: translateZ(18px) scale(1.02);
}

@keyframes redGlowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(255, 51, 51, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 51, 51, 0.95));
    }
}

@keyframes floatRings3D {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: translateY(-1.5px) rotateX(6deg) rotateY(-8deg) rotateZ(-1deg);
    }
    50% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    75% {
        transform: translateY(1.5px) rotateX(-6deg) rotateY(8deg) rotateZ(1deg);
    }
}

@keyframes floatRingsHover3D {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1.03);
    }
    25% {
        transform: translateY(-2.5px) rotateX(10deg) rotateY(-14deg) rotateZ(-2deg) scale(1.03);
    }
    50% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1.03);
    }
    75% {
        transform: translateY(2.5px) rotateX(-10deg) rotateY(14deg) rotateZ(2deg) scale(1.03);
    }
}

/* ==========================================================================
   Warehouse Section Styles
   ========================================================================== */
.warehouse-section {
    position: relative;
    overflow: hidden;
}

.warehouse-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.warehouse-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.warehouse-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.warehouse-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
}

.warehouse-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-dark);
}

.warehouse-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 14px 28px;
    font-weight: 700;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(214, 40, 40, 0.15);
}

.warehouse-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(214, 40, 40, 0.3);
    color: var(--light-color);
}

.warehouse-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.warehouse-image-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.warehouse-img-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-border);
    transition: all var(--transition-normal);
    position: relative;
}

.warehouse-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

.warehouse-img-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(214, 40, 40, 0.2);
}

.warehouse-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}

.warehouse-img-wrapper:hover img {
    transform: scale(1.04);
}

/* Specific heights to create a perfectly balanced grid */
.warehouse-img-wrapper.top-left {
    height: 180px;
}

.warehouse-img-wrapper.bottom-left {
    height: 180px;
}

.warehouse-img-wrapper.right-tall {
    height: 380px;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
    .warehouse-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .warehouse-title {
        font-size: 2.2rem;
    }
    
    .warehouse-img-wrapper.top-left,
    .warehouse-img-wrapper.bottom-left {
        height: 150px;
    }
    
    .warehouse-img-wrapper.right-tall {
        height: 320px; /* 150 + 20 (gap) + 150 */
    }
}

@media (max-width: 575px) {
    .warehouse-image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .warehouse-image-col {
        gap: 15px;
    }
    
    .warehouse-img-wrapper.top-left,
    .warehouse-img-wrapper.bottom-left,
    .warehouse-img-wrapper.right-tall {
        height: 220px;
    }
}

/* ==========================================================================
   Company Achievements / Stats Section
   ========================================================================== */
.stats-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    border-top: 1px solid var(--light-border);
    border-bottom: 1px solid var(--light-border);
    position: relative;
    overflow: hidden;
}

.stats-container {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 40px;
    align-items: stretch;
}

.stats-left-card {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: var(--border-radius-lg);
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

.stats-left-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #fff;
}

.stats-left-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.stats-left-card .stats-btn {
    display: inline-block;
    align-self: flex-start;
    background-color: #fff;
    color: var(--accent-color) !important;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    z-index: 2;
}

.stats-left-card .stats-btn:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stats-left-card .stats-bg-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 10rem;
    opacity: 0.08;
    pointer-events: none;
    line-height: 1;
}

[dir="rtl"] .stats-left-card .stats-bg-icon {
    right: auto;
    left: -15px;
}

.stats-right-box {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-border);
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    align-items: center;
}

.stats-grid-item {
    padding: 40px 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

/* Borders between items to form a perfect grid */
.stats-grid-item:nth-child(1) {
    border-right: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.stats-grid-item:nth-child(2) {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.stats-grid-item:nth-child(3) {
    border-right: 1px solid rgba(0,0,0,0.06);
}

[dir="rtl"] .stats-grid-item:nth-child(1) {
    border-right: none;
    border-left: 1px solid rgba(0,0,0,0.06);
}

[dir="rtl"] .stats-grid-item:nth-child(3) {
    border-right: none;
    border-left: 1px solid rgba(0,0,0,0.06);
}

.stats-item-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(214, 40, 40, 0.08);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stats-grid-item:nth-child(even) .stats-item-icon {
    background-color: rgba(27, 73, 101, 0.08);
    color: var(--primary-light);
}

.stats-item-text {
    display: flex;
    flex-direction: column;
}

.stats-item-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 6px;
    font-family: var(--font-en);
}

.stats-item-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Responsive Styles for Stats Section */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stats-left-card {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .stats-right-box {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .stats-grid-item {
        padding: 24px 20px;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    
    .stats-grid-item:last-child {
        border-bottom: none;
    }
}

/* ==========================================================================
   Project Details View Styles
   ========================================================================== */
.project-detail-layout {
    display: grid;
    grid-template-columns: 65% 30%;
    gap: 5%;
    align-items: start;
    margin-bottom: 40px;
}

.project-detail-sidebar {
    position: sticky;
    top: 100px;
}

.project-meta-card {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.project-meta-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--light-border);
    padding-bottom: 10px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed var(--light-border);
    font-size: 0.9rem;
}

.meta-row:last-child {
    border-bottom: none;
}

.meta-label {
    color: var(--text-muted);
    font-weight: 500;
}

.meta-val {
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}

[dir="rtl"] .meta-val {
    text-align: left;
}

.project-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.project-detail-img-wrapper {
    position: relative;
    height: 140px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--light-border);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.project-detail-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.project-detail-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 43, 70, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.project-detail-img-wrapper:hover .project-detail-img-overlay {
    opacity: 1;
}

.project-detail-img-overlay span {
    color: #fff;
    font-size: 1.25rem;
    background-color: var(--accent-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

/* Mobile-only / Desktop-only Language Toggle Visibilities */
.mobile-only-lang {
    display: none !important;
}

.desktop-only-lang {
    display: inline-flex !important;
}

@media (max-width: 768px) {
    .project-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-detail-sidebar {
        position: static;
    }
    
    .mobile-only-lang {
        display: block !important;
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 15px;
        width: 100%;
    }
    
    .desktop-only-lang {
        display: none !important;
    }
}
