:root {
    --dark: #213D76;
    --blue: #2368B1;
    --yellow: #EFAC20;
    --green: #4FA046;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* HEADER */
header {
    background: white;
    border-bottom: 2px solid var(--blue);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 50px;
    width: auto;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-link {
    text-decoration: none;
    border: none;
    outline: none;
    display: inline-block;
}

/* Language Toggle */
.lang-toggle {
    background: var(--yellow);
    color: var(--dark);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--yellow);
    z-index: 100;
    position: relative;
    pointer-events: auto;
}

.lang-toggle:hover {
    background: transparent;
    color: var(--yellow);
}

.lang-toggle:active {
    transform: scale(0.95);
}

/* Hide hamburger on desktop */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header Navigation */
    .nav-flex {
        flex-wrap: wrap;
        padding: 10px 0;
        position: relative;
    }
    
    .logo-container {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .logo {
        height: 40px;
        margin: 0;
    }
    
    h1.company-name {
        width: 100%;
        text-align: center;
        font-size: 1.5rem;
        margin: 10px 0;
    }
    
    nav {
        width: 100%;
        display: none !important;
        text-align: center;
        margin: 15px 0;
        clear: both;
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 10px 0;
        border-radius: 8px;
        position: relative;
        z-index: 1000;
    }
    
    nav.active {
        display: block !important;
    }
    
    nav a {
        display: block !important;
        margin: 10px 20px;
        padding: 12px !important;
        background: var(--blue) !important;
        color: white !important;
        border-radius: 5px;
        text-decoration: none !important;
        font-weight: 500;
        text-align: center;
        position: relative;
        z-index: 1001;
        opacity: 1 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }
    
    nav a:hover {
        background: var(--dark) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    nav a:active {
        transform: translateY(0);
    }
    
    .lang-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1001;
    }
    
    .hamburger {
        display: block !important;
        position: absolute;
        top: 15px;
        left: 15px;
        z-index: 1002;
        cursor: pointer;
        padding: 10px;
        background: transparent;
        border: none;
        width: 45px;
        height: 35px;
    }
    
    .hamburger span {
        display: block !important;
        width: 25px;
        height: 3px;
        background: var(--dark) !important;
        margin: 4px 0;
        transition: 0.3s;
        border-radius: 2px;
        position: relative;
    }
    
    .hamburger:hover span {
        background: var(--blue) !important;
    }
    
    .hamburger:active {
        transform: scale(0.95);
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 15px 60px 15px;
    }
    
    .hero h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .hero button,
    .hero-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* General Sections */
    .container {
        width: 95%;
        padding: 30px 0;
    }
    
    h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 30px;
    }
    
    /* Grid Layouts */
    .grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .values-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Cards */
    .card,
    .value-card,
    .why-item,
    .service-card,
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-card img {
        height: 150px;
    }
    
    .product-card img:hover {
        transform: scale(1.2);
    }
    
    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .contact-icon {
        font-size: 2rem;
        min-width: auto;
    }
    
    .contact-btn {
        align-self: center;
        width: 100%;
        max-width: 300px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    /* Extra Small Screens */
    .logo {
        height: 35px;
    }
    
    h1.company-name {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 60px 10px 40px 10px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .container {
        width: 98%;
        padding: 20px 0;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .product-card img {
        height: 120px;
    }
    
    .map-container iframe {
        height: 250px;
    }
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .nav-flex {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] nav a {
    margin-left: 0;
    margin-right: 20px;
}

[dir="rtl"] .grid,
[dir="rtl"] .values-grid,
[dir="rtl"] .why-grid,
[dir="rtl"] .services-grid,
[dir="rtl"] .products-grid {
    direction: rtl;
}

[dir="rtl"] .card,
[dir="rtl"] .value-card,
[dir="rtl"] .why-item,
[dir="rtl"] .service-card,
[dir="rtl"] .product-card {
    text-align: right;
}

[dir="rtl"] .value-card,
[dir="rtl"] .why-item,
[dir="rtl"] .product-card {
    border-left: none;
    border-right: 5px solid var(--green);
}

[dir="rtl"] .service-card {
    border-top: 4px solid var(--yellow);
}

[dir="rtl"] .ess-placeholder li {
    padding-left: 0;
    padding-right: 25px;
}

[dir="rtl"] .ess-placeholder li:before {
    left: auto;
    right: 0;
}

[dir="rtl"] .lang-toggle {
    left: 10px;
    right: auto;
}

[dir="rtl"] .hamburger {
    right: 10px;
    left: auto;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-details {
    text-align: right;
}

[dir="rtl"] .contact-btn {
    align-self: flex-end;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.contact-details h3 {
    margin: 0 0 10px 0;
    color: var(--yellow);
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-details p {
    margin: 5px 0;
    color: var(--dark);
    font-size: 1rem;
}

.contact-details a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-btn {
    background: var(--yellow);
    color: var(--dark);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    align-self: flex-start;
}

.contact-btn:hover {
    background: #fff;
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
    z-index: 1;
}

.map-container iframe {
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .contact-icon {
        font-size: 2rem;
        min-width: 50px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-icon {
        min-width: auto;
    }
    
    .contact-btn {
        align-self: center;
        width: 100%;
    }
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-details {
    text-align: right;
}

[dir="rtl"] .contact-btn {
    align-self: flex-end;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--dark);
}

/* HERO */
.hero {
    background: linear-gradient(rgba(33,61,118,0.85), rgba(35,104,177,0.85));
    color: white;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 0.4;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero button,
.hero-btn {
    background: var(--yellow);
    border: none;
    padding: 12px 25px;
    margin-top: 20px;
    font-weight: 600;
    cursor: pointer;
    color: var(--dark);
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #fff;
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}

/* GENERAL */
.container {
    width: 90%;
    margin: auto;
    padding: 50px 0;
}

h2 {
    color: var(--dark);
}

/* GRID */
.grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* CARDS */
.card {
    background: white;
    padding: 20px;
    flex: 1;
    min-width: 250px;
    border-left: 5px solid var(--green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* PRODUCTS */
.products {
    background: #f7f9fc;
}

.products h2 {
    text-align: center;
    color: var(--dark);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.products h3 {
    color: var(--blue);
    font-size: 1.8em;
    margin: 40px 0 20px 0;
    text-align: center;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--blue);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.product-card img:hover {
    transform: scale(1.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 100;
    position: relative;
}

.product-card {
    overflow: visible;
}

.product-card h4 {
    color: var(--dark);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.product-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

.ess-placeholder {
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--dark), var(--blue));
    color: white;
    border-radius: 8px;
    text-align: center;
}

.ess-placeholder h4 {
    color: var(--yellow);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.ess-placeholder p {
    color: white;
    margin-bottom: 20px;
}

.ess-placeholder ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

.ess-placeholder li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.ess-placeholder li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-weight: bold;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    object-fit: contain;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

/* MISSION */
.mission {
    background: linear-gradient(135deg, var(--dark), var(--blue));
    color: white;
    text-align: center;
}

.mission h2 {
    color: var(--yellow);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.mission p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* VISION */
.vision {
    background: white;
    text-align: center;
}

.vision h2 {
    color: var(--dark);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.vision p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--blue);
}

/* CORE VALUES */
.core-values {
    background: #f8f9fa;
}

.core-values h2 {
    text-align: center;
    color: var(--dark);
    font-size: 2.5em;
    margin-bottom: 40px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.value-card h3 {
    color: var(--green);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* WHY CHOOSE US */
.why-choose {
    background: var(--blue);
    color: white;
}

.why-choose h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.why-item {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--yellow);
    transition: background 0.3s ease;
}

.why-item:hover {
    background: rgba(255,255,255,0.2);
}

.why-item h3 {
    font-size: 1.1em;
    line-height: 1.4;
    margin: 0;
}

/* SERVICES */
.services {
    background: white;
}

.services h2 {
    text-align: center;
    color: var(--dark);
    font-size: 2.5em;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: linear-gradient(135deg, var(--dark), var(--blue));
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--yellow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.service-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--yellow);
}

.service-card p {
    opacity: 0.9;
    line-height: 1.5;
}

/* PROMISE */
.promise {
    background: var(--green);
    color: white;
    text-align: center;
}

.promise h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: white;
}

.promise p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* MARKET FOCUS */
.market-focus {
    background: white;
    text-align: center;
}

.market-focus h2 {
    color: var(--dark);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.market-focus p {
    font-size: 1.2em;
    color: var(--blue);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* QUALITY ASSURANCE */
.quality {
    background: #f8f9fa;
    text-align: center;
    border-top: 3px solid var(--green);
    border-bottom: 3px solid var(--green);
}

.quality h2 {
    color: var(--dark);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.quality p {
    font-size: 1.2em;
    color: var(--blue);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* STATS */
.stats {
    background: var(--dark);
    color: white;
    text-align: center;
}

.stats h3 {
    font-size: 32px;
    color: var(--yellow);
}

/* CONTACT */
#contact button {
    background: var(--green);
    color: white;
    border: none;
    padding: 12px 25px;
}

/* FOOTER */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: 0.3s;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 2px solid var(--blue);
        display: none;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .grid {
        flex-direction: column;
    }

    .card, .product-card {
        min-width: 100%;
    }

    .hero {
        padding: 80px 20px;
    }

    .container {
        width: 95%;
        padding: 30px 0;
    }

    .stats .grid {
        flex-direction: column;
        gap: 30px;
    }
}