:root {
    --primary-color: #00d4ff;
    --secondary-color: #007acc;
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7); /* More transparent for background visibility */
    --text-color: #e2e8f0;
    --text-muted: #cbd5e1; /* Lighter for better contrast against image */
    --accent-color: #10b981;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Background Image Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px) brightness(0.6); /* Blur and darken */
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(15, 23, 42, 0.8); /* More transparent */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
}

nav a.active {
    color: var(--primary-color);
}

.lang-switch {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-link {
    color: var(--text-muted);
}

.lang-link.active {
    color: var(--primary-color);
}

.lang-sep {
    margin: 0 0.4rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.btn-cta {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-cta:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8rem 5% 6rem;
    /* Removed radial gradient to show background image */
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Better readability */
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.hero-tight {
    padding-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
}

.btn-outline:hover {
    background-color: rgba(0, 212, 255, 0.1);
}

/* Features Section */
.features {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.section-title p {
    color: var(--text-muted);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); /* Glassmorphism effect */
    transition: transform 0.3s, border-color 0.3s, background-color 0.3s;

    /* Flex basis for 4 columns: (100% - 3 * gap) / 4 */
    flex: 0 1 calc((100% - 6rem) / 4);
    min-width: 250px; /* Prevent too small cards */
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background-color: rgba(30, 41, 59, 0.9);
}

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

.feature-icon img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.feature-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-header .feature-icon img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #fff;
    padding: 4px;
    border: 2px solid var(--primary-color);
}

.feature-header h3 {
    margin-bottom: 0;
}

.feature-header .feature-icon {
    margin-bottom: 0;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

/* Product Modules (alternating image/text rows) */
.modules {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.module-row {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.module-row.reverse {
    flex-direction: row-reverse;
}

.module-media {
    flex: 1 1 50%;
    min-width: 0;
}

.module-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.module-content {
    flex: 1 1 50%;
}

.module-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.module-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 800px) {
    .module-row,
    .module-row.reverse {
        flex-direction: column;
    }

    .module-media,
    .module-content {
        flex: 1 1 100%;
    }
}

/* Leadership Section */
.leadership {
    padding: 4rem 5%;
    background: linear-gradient(135deg, rgba(0, 122, 204, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
    border-top: 2px solid rgba(0, 122, 204, 0.3);
    border-bottom: 2px solid rgba(0, 122, 204, 0.3);
    margin-top: 3rem;
}

.leadership .section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.leadership-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.leader-card {
    flex: 0 0 42%;
    max-width: 420px;
    background: rgba(30, 41, 59, 0.9);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 122, 204, 0.3);
    backdrop-filter: blur(5px);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.leader-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(0, 122, 204, 0.2);
}

.leader-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 3px solid var(--primary-color);
}

@media (max-width: 760px) {
    .leadership-grid {
        flex-direction: column;
    }

    .leader-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.leader-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--bg-color);
    font-size: 2.5rem;
    font-weight: 700;
}

.leader-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.leader-highlight {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Compliance / Industrial Standards Section */
.compliance {
    padding: 6rem 5%;
    background-color: rgba(15, 23, 42, 0.8); /* Semi-transparent */
    backdrop-filter: blur(5px);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compliance-content {
    max-width: 800px;
    margin: 0 auto;
}

.compliance-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.compliance h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.compliance p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    padding-bottom: 1rem;
}

/* Footer */
footer {
    padding: 3rem 5%;
    background-color: rgba(15, 23, 42, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1e293b;
    margin: auto;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.contact-person {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-person:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-person h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-person p {
    margin: 0.3rem 0;
    color: var(--text-color);
}

.contact-person a {
    color: var(--text-muted);
}

.contact-person a:hover {
    color: var(--primary-color);
}

@media (max-width: 1200px) {
    .feature-card {
        flex: 0 1 calc((100% - 4rem) / 3); /* 3 columns */
    }
}

@media (max-width: 900px) {
    .feature-card {
        flex: 0 1 calc((100% - 2rem) / 2); /* 2 columns */
    }
}

@media (max-width: 600px) {
    .feature-card {
        flex: 0 1 100%; /* 1 column */
    }

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

    nav ul {
        display: none;
    }
}
