
:root {
    --primary-blue: #0A4C7D;
    --light-blue: #26C6DA;
    --white: #f7f3eb;
    --light-gray: #f2eee7;
    --section-bg: #f2eee7;
    --dark-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--section-bg);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    background-color: var(--section-bg);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 40px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-blue);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.language-switcher {
    position: relative;
}

.language-toggle {
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
}

.language-toggle::after {
    content: '▾';
    font-size: 0.8rem;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    display: none;
    flex-direction: column;
    padding: 8px;
    border-radius: 16px;
    background-color: rgba(8, 43, 69, 0.98);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    z-index: 1200;
}

.language-switcher.open .language-menu {
    display: flex;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--white);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.language-option.active {
    background-color: rgba(38, 198, 218, 0.18);
    outline: 1px solid rgba(38, 198, 218, 0.45);
}

.language-option.active::after {
    content: '✓';
    margin-left: auto;
    color: var(--light-blue);
    font-weight: 700;
}

.language-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--light-blue);
}

.hero {
    position: relative;
    height: 100vh;
    background-image: url('banner.png'), url('banner.jpg'), url('banner.jpeg'), url('https://coresg-normal.trae.ai/api/v1/text_to_image?prompt=deep%20blue%20ocean%20sea%20water%20waves%20sunset&image_size=landscape_16_9');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 76, 125, 0.7);
}

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

.hero-logo {
    width: 250px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--light-blue);
    color: var(--navy);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.products {
    background-color: var(--section-bg);
}

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

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: zoom-in;
}

.product-name {
    font-size: 1.3rem;
    color: var(--primary-blue);
    padding: 20px 20px 10px;
}

.product-desc {
    padding: 0 20px 20px;
    color: #666;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    color: #333;
}

.about-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-desc:last-child {
    margin-bottom: 0;
}

.about-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.reach-map {
    background-color: var(--section-bg);
}

.reach-intro {
    max-width: 860px;
    margin: 0 auto 25px;
    text-align: center;
    font-size: 1.08rem;
    color: #4d6170;
}

.reach-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 28px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background-color: rgba(10, 76, 125, 0.08);
    color: var(--primary-blue);
    font-weight: 500;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot-headquarters {
    background-color: var(--light-blue);
}

.legend-dot-market {
    background-color: var(--primary-blue);
}

.map-card {
    background-color: var(--section-bg);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(10, 76, 125, 0.12);
}

.world-map {
    width: 100%;
    height: 520px;
    display: block;
}

.world-map .jsvmap-container {
    width: 100%;
    height: 100%;
    background: transparent;
}

.world-map .jsvmap-region {
    transition: fill 0.25s ease, opacity 0.25s ease;
}

.jsvmap-tooltip {
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background-color: rgba(10, 76, 125, 0.95);
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 12px 24px rgba(10, 76, 125, 0.18);
}

.jsvmap-zoom-btn {
    display: none;
}

.services {
    background-color: var(--primary-blue);
    color: var(--white);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 30px;
    background-color: rgba(10, 76, 125, 0.8);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-desc {
    font-weight: 300;
    color: rgba(255,255,255,0.8);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-honeypot {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--primary-blue);
}

.form-input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--navy);
}

.form-textarea {
    resize: vertical;
}

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

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

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    opacity: 0.8;
}

.info-item h4 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
}

.info-item a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

html[dir="rtl"] .about-text,
html[dir="rtl"] .contact-content,
html[dir="rtl"] .contact-info,
html[dir="rtl"] .form-group,
html[dir="rtl"] .info-item {
    text-align: right;
}

html[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .language-menu {
    right: auto;
    left: 0;
}

html[dir="rtl"] .language-option {
    text-align: right;
}

html[dir="rtl"] .language-option.active::after {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .info-item {
    flex-direction: row-reverse;
}

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

.product-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 2000;
}

.product-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-image {
    max-width: min(92vw, 1400px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar .container,
    .nav-actions {
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 0.9rem;
    }

    .language-toggle,
    .language-menu {
        min-width: 170px;
    }

    .hero-logo {
        width: 150px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .reach-intro {
        font-size: 1rem;
    }

    .map-card {
        padding: 14px;
        overflow-x: auto;
    }

    .world-map {
        min-width: 920px;
        height: 500px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-lightbox {
        padding: 20px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
    }

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