/* ============================================
   Pipe Steel Pro - Main Stylesheet
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --primary: #004199;
    --primary-dark: #003078;
    --primary-light: #0052c4;
    --secondary: #37393A;
    --dark: #1B1B1B;
    --light: #F7F8FA;
    --accent: #00B4FF;
    --accent-dark: #0095cc;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    --font-heading: 'Montserrat', 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-heading-ar: 'Cairo', 'Montserrat', 'Poppins', sans-serif;
    --font-body-ar: 'Noto Kufi Arabic', 'Inter', sans-serif;

    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--secondary);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

a:hover {
    color: var(--accent);
}

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

section {
    position: relative;
    overflow: hidden;
}

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

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--dark);
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin-bottom: 3rem;
}

.text-primary-custom {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.bg-dark-custom {
    background-color: var(--dark);
}

.bg-primary-custom {
    background-color: var(--primary);
}

.bg-light-custom {
    background-color: var(--light);
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    width: 120px;
    margin-bottom: 2rem;
    animation: pulse-logo 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-inner {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: load-bar 2s ease forwards;
}

@keyframes load-bar {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse-logo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* ===== Navigation ===== */
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    z-index: 999;
}

.navbar.navbar-scrolled {
    padding: 5px 0;
    background: var(--white) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.navbar.navbar-scrolled .nav-link {
    color: var(--secondary) !important;
}

.navbar.navbar-scrolled .navbar-brand img {
    filter: none;
}

.navbar-brand img {
    height: 100px;
    transition: var(--transition);
}

.navbar .nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px !important;
    color: var(--white) !important;
    position: relative;
    transition: var(--transition);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar .nav-link:hover {
    color: var(--accent) !important;
}

.navbar .nav-link.active {
    color: var(--accent) !important;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-cta a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.navbar-scrolled .nav-cta a {
    background: var(--primary);
    color: var(--white);
}

.nav-cta a:hover {
    background: var(--accent) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

.lang-switcher-item {
    display: flex;
    align-items: center;
}

.lang-switcher-item .lang-switcher {
    margin-left: 0;
}

body[dir="rtl"] .lang-switcher-item .lang-switcher {
    margin-right: 0;
}

/* Offcanvas */
.offcanvas {
    background: var(--dark) !important;
}

.offcanvas .nav-link {
    color: var(--white) !important;
    font-size: 1.1rem;
    padding: 12px 0 !important;
}

.offcanvas .nav-link::after {
    display: none;
}

.offcanvas .nav-cta a {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 65, 153, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    background: rgba(0, 180, 255, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
}

.hero-buttons .btn {
    padding: 16px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 65, 153, 0.3);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 180, 255, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    animation: fade-scroll 2s ease-in-out infinite;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    position: relative;
}

.scroll-indicator .mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

@keyframes fade-scroll {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.3; }
}

/* ===== Company Intro Section ===== */
.company-intro {
    background: var(--white);
}

.intro-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.intro-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.intro-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 65, 153, 0.3), transparent);
}

.intro-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(0, 65, 153, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ===== Stats Section ===== */
.stats-section {
    background: var(--dark);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/Image50_1280_960.webp') center/cover;
    opacity: 0.05;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-number .suffix {
    color: var(--accent);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Services Section ===== */
.services-section {
    background: var(--light);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 65, 153, 0.1), rgba(0, 180, 255, 0.1));
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ===== Industries Section ===== */
.industries-section {
    background: var(--white);
}

.industry-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.industry-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: var(--transition);
}

.industry-card:hover .industry-card-overlay {
    background: linear-gradient(180deg, rgba(0, 65, 153, 0.6) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.industry-card-overlay h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.industry-card-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.industry-card:hover .industry-card-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* ===== Why Choose Us / Timeline ===== */
.timeline-section {
    background: var(--dark);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 60px;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(0, 180, 255, 0.3);
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ===== Gallery Preview ===== */
.gallery-preview-section {
    background: var(--light);
}

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

.gallery-grid-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    height: 280px;
}

.gallery-grid-item:nth-child(1) {
    grid-row: span 2;
    height: auto;
}

.gallery-grid-item:nth-child(4) {
    grid-column: span 2;
}

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

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

.gallery-grid-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 65, 153, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-grid-item .overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: var(--dark);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/Image51_960_1280.webp') center/cover;
    opacity: 0.15;
}

.cta-section .cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 65, 153, 0.8), rgba(0, 0, 0, 0.9));
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ===== Page Header (Inner Pages) ===== */
.page-header {
    position: relative;
    padding: 200px 0 100px;
    background: var(--dark);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 65, 153, 0.6));
    z-index: 1;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header-content .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header-content .breadcrumb-item,
.page-header-content .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
}

.page-header-content .breadcrumb-item.active {
    color: var(--accent);
}

.page-header-content .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== About Page ===== */
.about-story {
    background: var(--white);
}

.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-image-grid .img-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    height: 300px;
}

.about-image-grid .img-wrapper:first-child {
    grid-column: span 2;
    height: 400px;
}

.about-image-grid .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-image-grid .img-wrapper:hover img {
    transform: scale(1.05);
}

.vision-mission {
    background: var(--light);
}

.vm-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.vm-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
}

.vm-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.vm-card p {
    color: var(--gray-600);
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.value-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.value-item .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ===== Services Page ===== */
.service-detail-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

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

.service-detail-card .card-image {
    height: 250px;
    overflow: hidden;
}

.service-detail-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-detail-card:hover .card-image img {
    transform: scale(1.1);
}

.service-detail-card .card-body {
    padding: 2rem;
}

.service-detail-card .card-body .icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 65, 153, 0.1), rgba(0, 180, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-detail-card .card-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-detail-card .card-body p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* ===== Industries Page ===== */
.industry-detail-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    margin-bottom: 30px;
}

.industry-detail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.industry-detail-card:hover img {
    transform: scale(1.1);
}

.industry-detail-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.95));
    color: var(--white);
    z-index: 1;
}

.industry-detail-card .content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.industry-detail-card .content p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.industry-detail-card .content .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.industry-detail-card .content .tags span {
    padding: 4px 14px;
    background: rgba(0, 180, 255, 0.2);
    border: 1px solid rgba(0, 180, 255, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent);
}

/* ===== Gallery Page ===== */
.gallery-page-section {
    background: var(--light);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
}

.gallery-filters .filter-btn {
    padding: 10px 28px;
    border: 2px solid var(--gray-300);
    background: transparent;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.masonry-grid {
    column-count: 3;
    column-gap: 15px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 65, 153, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

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

.masonry-item .overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    transition: var(--transition);
}

.lightbox-nav:hover {
    color: var(--accent);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* ===== Automation Page ===== */
.automation-hero {
    position: relative;
    padding: 200px 0 100px;
    background: var(--dark);
    overflow: hidden;
}

.automation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 65, 153, 0.5));
    z-index: 1;
}

.automation-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.automation-services {
    background: var(--light);
}

.auto-service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.auto-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.auto-service-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
}

.auto-service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auto-service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 0;
}

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

.brand-logo {
    text-align: center;
    padding: 2rem;
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(1);
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}

.brand-logo img {
    height: 60px;
    object-fit: contain;
}

.brand-logo h5 {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

/* ===== Contact Page ===== */
.contact-section {
    background: var(--white);
}

.contact-info-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-info-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-info-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: var(--gray-600);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--gray-200);
}

.form-control {
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-family: var(--font-body);
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 65, 153, 0.1);
}

.form-control::placeholder {
    color: var(--gray-500);
}

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

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-widget p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.footer-links li a i {
    font-size: 0.7rem;
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-contact li i {
    color: var(--accent);
    margin-top: 5px;
    min-width: 16px;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact li a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== Glassmorphism ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* ===== Gradient Overlay ===== */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 65, 153, 0.8), rgba(0, 0, 0, 0.7));
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== Mouse Parallax ===== */
.parallax-tilt {
    transition: transform 0.3s ease;
}

/* ===== Responsive ===== */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 3.8rem;
    }
    .cta-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .section-title {
        font-size: 2.3rem;
    }
    .page-header-content h1 {
        font-size: 2.8rem;
    }
    .cta-content h2 {
        font-size: 2.5rem;
    }
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 70px 0;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-buttons .btn {
        padding: 12px 30px;
        font-size: 0.85rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .stat-number {
        font-size: 2.8rem;
    }
    .page-header-content h1 {
        font-size: 2.5rem;
    }
    .page-header {
        padding: 160px 0 80px;
    }
    .cta-content h2 {
        font-size: 2.2rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-image-grid .img-wrapper {
        height: 200px;
    }
    .about-image-grid .img-wrapper:first-child {
        height: 300px;
    }
    .contact-form-wrapper {
        padding: 2rem;
    }
    .masonry-grid {
        column-count: 2;
    }
    .auto-service-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 50px 0;
    }
    .hero {
        min-height: 600px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .hero-buttons .btn {
        padding: 10px 24px;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .stat-number {
        font-size: 2.3rem;
    }
    .stat-item {
        padding: 1.5rem;
    }
    .page-header {
        padding: 140px 0 60px;
    }
    .page-header-content h1 {
        font-size: 2rem;
    }
    .cta-section {
        padding: 80px 0;
    }
    .cta-content h2 {
        font-size: 1.8rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid-item:nth-child(1) {
        grid-row: span 1;
    }
    .gallery-grid-item:nth-child(4) {
        grid-column: span 1;
    }
    .intro-image-wrapper {
        min-height: 300px;
    }
    .timeline-item {
        gap: 1rem;
    }
    .masonry-grid {
        column-count: 1;
    }
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    .footer {
        padding-top: 50px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 16px;
    }
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .page-header-content h1 {
        font-size: 1.6rem;
    }
    .cta-content h2 {
        font-size: 1.5rem;
    }
    .navbar-brand img {
        height: 80px;
    }
    .navbar-toggler{
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    .navbar-scrolled .navbar-toggler{
        border: 1px solid rgba(0, 0, 0, 0.2);
    }
    .navbar-toggler-icon {
        filter: brightness(17);
    }
    .navbar-scrolled .navbar-toggler-icon {
        filter: brightness(1);
    }
    .service-card {
        padding: 2rem 1.5rem;
    }
    .industry-card {
        height: 280px;
    }
    .stat-number {
        font-size: 2rem;
    }
}

/* ===== RTL / Arabic Support ===== */
body[data-lang="ar"] {
    font-family: var(--font-body-ar);
}

body[data-lang="ar"] h1,
body[data-lang="ar"] h2,
body[data-lang="ar"] h3,
body[data-lang="ar"] h4,
body[data-lang="ar"] h5,
body[data-lang="ar"] h6,
body[data-lang="ar"] .navbar .nav-link,
body[data-lang="ar"] .hero-badge,
body[data-lang="ar"] .intro-badge,
body[data-lang="ar"] .stat-label,
body[data-lang="ar"] .filter-btn,
body[data-lang="ar"] .hero-buttons .btn,
body[data-lang="ar"] .btn {
    font-family: var(--font-heading-ar);
}

body[data-lang="ar"] .hero-title {
    line-height: 1.3;
}

body[data-lang="ar"] .hero-subtitle {
    line-height: 1.9;
}

body[data-lang="ar"] .intro-text {
    line-height: 1.9;
}

body[data-lang="ar"] .section-subtitle {
    line-height: 1.8;
}

body[data-lang="ar"] .timeline-item::before {
    left: auto;
    right: 23px;
}

body[data-lang="ar"] .footer-links li a:hover {
    transform: translateX(-5px);
}

body[data-lang="ar"] .feature-list li i {
    margin-right: 0;
    margin-left: 10px;
}

body[data-lang="ar"] .scroll-indicator .mouse::after {
    left: auto;
    right: 50%;
    transform: translateX(50%) !important;
}

body[data-lang="ar"] .navbar .nav-link::after {
    left: auto;
    right: 50%;
    transform: translateX(50%) scaleX(0);
}

body[data-lang="ar"] .navbar .nav-link:hover::after,
body[data-lang="ar"] .navbar .nav-link.active::after {
    transform: translateX(50%) scaleX(1);
}

body[data-lang="ar"] .section-title {
    line-height: 1.4;
}

body[data-lang="ar"] .cta-content h2 {
    line-height: 1.4;
}

body[data-lang="ar"] .page-header-content h1 {
    line-height: 1.4;
}

/* Lang Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 15px;
}

body[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 15px;
}

.lang-switcher .lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.lang-switcher .lang-btn:hover {
    color: var(--white);
    border-color: var(--accent);
}

.lang-switcher .lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.navbar-scrolled .lang-switcher .lang-btn {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--secondary);
}

.navbar-scrolled .lang-switcher .lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.navbar-scrolled .lang-switcher .lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.offcanvas .lang-switcher {
    margin: 20px 0 0;
    padding: 0;
}

.offcanvas .lang-switcher .lang-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.offcanvas .lang-switcher .lang-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
@media (max-width: 575.98px) {
    .offcanvas-header img {
        max-height: 100px;
    }
    ul.navbar-nav{
        margin-top: 20px;
    }
}

/* RTL margin/padding flips */
body[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

body[dir="rtl"] .ms-lg-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

body[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

body[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

body[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

body[dir="rtl"] .text-md-end {
    text-align: left !important;
}

body[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

body[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-right: 0;
    padding-left: 0.5rem;
}

body[dir="rtl"] .offcanvas.offcanvas-end {
    right: auto;
    left: 0;
    transform: translateX(100%);
}

body[dir="rtl"] .offcanvas.offcanvas-end.show {
    transform: translateX(0);
}

body[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

body[dir="rtl"] .navbar-brand {
    margin-right: 0;
    margin-left: 1rem;
}

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

body[dir="rtl"] .lightbox-nav.prev {
    left: auto;
    right: 20px;
}

body[dir="rtl"] .lightbox-nav.next {
    right: auto;
    left: 20px;
}

body[dir="rtl"] .btn i.fa-arrow-right,
body[dir="rtl"] .btn i.fa-arrow-left,
body[dir="rtl"] a i.fa-arrow-right,
body[dir="rtl"] a i.fa-arrow-left {
    transform: scaleX(-1);
}

body[dir="rtl"] .fa-chevron-right,
body[dir="rtl"] .fa-chevron-left {
    transform: scaleX(-1);
}

body[dir="rtl"] .footer-links li a i.fa-chevron-right {
    transform: scaleX(-1);
}

body[data-lang="ar"] .form-control {
    font-family: var(--font-body-ar);
}

body[data-lang="ar"] .form-label {
    font-family: var(--font-heading-ar);
}
body[data-lang="ar"] i.fas.fa-arrow-right {
    transform: scale(-1);
}
body[data-lang="ar"] .footer-widget h4::after {
    right: 0;
    left: inherit;
}