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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --hover-color: #34495e;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-light: 0 5px 15px rgba(0,0,0,0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--bg-color);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 150px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.0rem;
    box-shadow: var(--shadow-light);
}

.header-right {
        display: flex;
        flex-direction: column;   /* stack language selector and nav vertically */
        align-items: flex-end;    /* push everything to the right */
        gap: 2px;                 /* space between rows */
}
.lg_header_right {
        text-align: right;
}
.table-right td {
    text-align: right;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.5rem;
    border-radius: 25px;
    box-shadow: var(--shadow-light);;
    justify-content: flex-end;
}

.lang-flag {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
/*
.lang-flag.en { background: linear-gradient(to bottom, #012169 33%, white 33%, white 66%, #C8102E 66%); color: white; }
.lang-flag.fr { background: linear-gradient(to right, #0055A4 33%, white 33%, white 66%, #EF4135 66%); color: white; }
.lang-flag.nl { background: linear-gradient(to bottom, #AE1C28 33%, white 33%, white 66%, #21468B 66%); color: white; }
*/

.lang-flag.en {
    background-image: url('https://upload.wikimedia.org/wikipedia/en/a/ae/Flag_of_the_United_Kingdom.svg');
    background-size: cover;   /* scale to fit circle */
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}
.lang-flag.fr {
    background-image: url("https://upload.wikimedia.org/wikipedia/en/c/c3/Flag_of_France.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.lang-flag.nl {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/2/20/Flag_of_the_Netherlands.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*
lang-flag.en::before {
    content: "🇬🇧";
    font-size: 14px;  /* adjust to fit circle * /
    display: flex;
    align-items: center;
    justify-content: center;
}
lang-flag.fr::before {
    content: "🇫🇷";
    font-size: 14px;  
    display: flex;
    align-items: center;
    justify-content: center;
}
lang-flag.nl::before {
    content: "🇳🇱";
    font-size: 14px;  
    display: flex;
    align-items: center;
    justify-content: center;
}
*/
.lang-flag.active {
    transform: scale(1.1);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.lang-flag:not(.active) {
    filter: grayscale(70%) opacity(0.6);
}

.lang-flag:hover {
    transform: scale(1.05);
    filter: none;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 0;
    background: var(--bg-light);
    border-radius: 25px;
    padding: 0.3rem;
    box-shadow: var(--shadow-light);
    justify-content: flex-end;
}

.nav-item {
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
}

.nav-item.active {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-light);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Homepage Styles */
.hero-section {
    background: var(--gradient);
    color: white;
    padding: 4rem 0;
    margin: -2rem -2rem 3rem -2rem;
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
}

    /* --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef; */

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

/* .hero-title {
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #f1f2f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} */

.hero-title_home {}
  color: var(--border-color);
  margin-bottom: 3rem;
  font-size: 3.5rem;
  font-weight: 500;
  background: linear-gradient(45deg, #e6e0f0, rgba(255, 255, 255, 0.4)); /* More transparent */
  -webkit-background-clip: text;
  background-clip: text;
  color: #e6e0f0;  /* a light color to show through */
}

.hero-title {
  color: var(--border-color);
  margin-bottom: 3rem;
  font-size: 3.5rem;
  font-weight: 500;
  background: linear-gradient(45deg, #e6e0f0, rgba(255, 255, 255, 0.4)); /* More transparent */
  -webkit-background-clip: text;
  background-clip: text;
  color: #e6e0f0;  /* a light color to show through */
}
.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* .content-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
} */

/* .client-card-outer {
  display: flex;
  align-items: center;
  gap: 1rem; / * spacing between logo and text * /
  margin-bottom: 1rem;
} */

.content-card {
  display: flex;
  align-items: center;
  gap: 1rem;                    /* spacing between logo and text */
  margin-bottom: 1rem;

  background: var(--bg-color);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-logo {
  width: 60px;         /* set your desired square size */
  height: 60px;
  background-color: #f0f0f0;  /* optional background */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.content-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-icon {
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.tech-category {
    margin-bottom: 2rem;
}

.tech-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    background: linear-gradient(135deg, var(--secondary-color), #5dade2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Client List */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* .client-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
} */

.client-card {
  display: flex;
  align-items: center;
  gap: 1rem; /* spacing between logo and text */
  margin-bottom: 1rem;
}

.client-card:hover {
    background: var(--bg-color);
    box-shadow: var(--shadow-light);
}

.client-logo {
  width: 60px;         /* set your desired square size */
  height: 45px;
  /* background-color: #f0f0f0;  optional background */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-table-col-left {
  display: flex;
  align-items: center;       /* vertical alignment */
  gap: 1rem;                 /* space between logo and text */
}

.logo-table-col-right {
  display: flex;
  flex-direction: column;    /* stack rows vertically */
  justify-content: center;
}

.client-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.client-sector {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        height: 70px;
    }

    .header-right {
        gap: 1rem;
    }

    .nav-menu {
        padding: 0.2rem;
    }

    .nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

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

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

    .main-content {
        margin-top: 70px;
    }

    .container {
        padding: 0 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}