/* Modern Industrial Dynamic Design */
:root {
    /* Brand Colors */
    --primary: #d97706;
    --primary-dark: #b45309;
    --secondary: #f59e0b;
    --accent: #fbbf24;

    /* Neutral Colors */
    --dark-bg: #111827;
    --dark-card: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --text-white: #f9fafb;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--light-bg);
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-header h2 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: -10px;
    right: -10px;
    height: 15px;
    background: var(--accent);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-20deg);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.6);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.lang-switcher {
    background: var(--dark-bg);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    transition: all 0.3s;
}

.lang-switcher:hover {
    background: var(--primary);
}

.lang-switcher-mobile,
.hamburger {
    display: none;
}

/* Hero Section - Asymmetrical Glass */
.hero {
    min-height: 100vh;
    background-image: url('hero-new.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    /* Align to side */
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4rem;
    border-radius: 30px;
    max-width: 650px;
    color: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 1s ease-out;
}

.hero-badge {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* About Section - Overlapping Cards */
.about {
    padding: var(--section-padding);
    background: var(--white);
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    position: relative;
}

.about-image {
    position: relative;
    z-index: 1;
}

.image-placeholder {
    height: 600px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.about-image:hover .about-img {
    transform: scale(1.05);
}

.about-text {
    background: var(--white);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.1);
    margin-right: -100px;
    /* Overlap */
    position: relative;
    z-index: 2;
}

.about-text h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.values-list {
    list-style: none;
    margin-top: 1.5rem;
}

.values-list li {
    margin-bottom: 1rem;
    padding-right: 2rem;
    position: relative;
    font-weight: 500;
}

.values-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: 900;
}

/* Products Section - Dark Theme Grid */
.products {
    padding: var(--section-padding);
    background: var(--dark-bg);
    color: var(--white);
}

.products .section-header h2 {
    color: var(--white);
}

.products .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    group: hover;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: var(--accent);
}

.product-card p {
    padding: 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.product-details {
    padding: 0 1.5rem 1.5rem;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    padding-top: 1rem;
}

.product-details li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    padding-right: 1.2rem;
    position: relative;
}

.product-details li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    right: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Services Section - Feature List */
.services {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-bottom-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    background: rgba(217, 119, 6, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Why Us - Horizontal Stats & Grid */
.why-us {
    padding: 0;
    background: var(--white);
}

.stats-section {
    background: var(--primary);
    padding: 4rem 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
}

.why-us-content {
    display: block;
}

.why-us-text {
    padding: var(--section-padding);
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--light-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    padding: 12px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* Industries */
.industries {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.industry-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.industry-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.industry-card:hover .industry-icon {
    color: var(--white);
}

.industry-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.industry-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.industry-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section - Centered Card */
.contact {
    position: relative;
    padding: var(--section-padding);
    background: var(--light-bg);
    height: auto;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-floating-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: var(--white);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    z-index: 2;
    max-width: 800px;
    width: 100%;
    border-left: 5px solid var(--primary);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon-small {
    width: 45px;
    height: 45px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    padding: 10px;
}

.contact-icon-small svg {
    width: 100%;
    height: 100%;
}

.contact-details-row h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.contact-details-row a,
.contact-details-row p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text {
        margin-right: 0;
        margin-top: -50px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
        gap: 1.5rem;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .glass-card {
        padding: 2rem;
    }

    .why-us-text {
        grid-template-columns: 1fr;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .products-grid,
    .services-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 4rem 0;
    }

    .contact-floating-card {
        padding: 2rem;
        border-left: none;
        border-top: 5px solid var(--primary);
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        position: absolute;
        top: 25px;
        left: 20px;
        /* Default LTR */
    }

    /* RTL Support for Hamburger */
    html[dir="rtl"] .hamburger {
        left: auto;
        right: 20px;
    }

    .hamburger span {
        width: 30px;
        height: 3px;
        background: var(--primary);
        transition: all 0.3s;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .lang-switcher-desktop {
        display: none;
    }

    .lang-switcher-mobile {
        display: block;
        margin-top: 1rem;
        text-align: center;
    }
}

.phone-number {
    direction: ltr;
    display: inline-block;
    unicode-bidi: embed;
}