/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.5;
}
  
/* Navbar */
nav {
  background-color: #002244;
  padding: 14px 40px;
  width: 100%;
  max-width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: fixed;
}
nav a {
    color: #f5f5f5;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    transition: color 0.3s ease;
}
nav a:hover {
    text-decoration: underline;
}
  
.nav-left, .nav-right {
    display: flex;
    align-items: center;
}




/* Language switch dropdown */
.lang-select {
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #004080;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    font-size: 12px;
    font-weight: 700;
  }
  
  .lang-select img.flag-icon {
    width: 20px;
    height: auto;
  }
  
  .lang-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background-color: rgb(25, 71, 170);
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    width: max-content;
    border: 1px solid #000b3d;
    border-radius: 6px;
    z-index: 1000;
  }
  
  .lang-menu li {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
  }
  
  .lang-menu li:hover {
    background-color: #183aa2;
  }
  .lang-menu li img {
    max-width: 20px;
  }
  .lang-current {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .lang-current img {
    width: 20px;
    height: auto;
  }
  
  .lang-menu li img {
    width: 20px;
    height: auto;
  }
  .lang-current .arrow {
    font-size: 8px;
  }
  .lang-menu.show {
    display: block;
}

  /* ///////////////////////// */
  


/* Main content container */
main {
    max-width: 1400px;
    margin: 5.5rem auto 100px;
    padding: 0 1rem;
}

h1 {
    font-size: 3.4rem;
    color: #264653;
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-align: center;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(38, 70, 83, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(38, 70, 83, 0.2);
}

.service-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.service-info {
    padding: 1rem 1.2rem;
    margin-bottom:6px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2a9d8f;
    margin-bottom: 0.4rem;
}

.service-desc {
    font-size: 0.9rem;
    color: #555;
}

/* Language selector styling */
select {
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    background-color: #e9f5f3;
    color: #264653;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
select:hover {
    background-color: #d1ebe8;
}

@media (max-width: 480px) {
h1 {
    font-size: 1.8rem;
}
}




/* /////////////////////////////////// */

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-content-wrapper {
  position: relative;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100vw; /* Prevents horizontal overflow */
  box-sizing: border-box;
}


.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  animation: fadeIn 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  animation: fadeIn 0.8s ease;
}

.modal-close:hover {
  color: #333;
  background: #f1f1f1;
}

.modal-img {
  width: 100%;
  min-width: 550px;
  min-height: 300px;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#modalTitle {
  font-size: 1.5rem;
  color: #2a9d8f;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

#modalDesc {
  font-size: 1rem;
  color: #444;
  line-height: 1.4;
  overflow-y: auto;
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* 🔁 Responsive tweaks */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.2rem;
    max-width: 95%;
  }

  #modalTitle {
    font-size: 1.2rem;
  }

  #modalDesc {
    font-size: 0.95rem;
  }

  .modal-img {
    max-height: 220px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1rem;
    max-width: 100%;
    border-radius: 8px;
  }

  .modal-close {
    top: -25px;
    right: -25px;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  #modalTitle {
    font-size: 1.1rem;
  }

  #modalDesc {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  .modal-img {
    width: 100%;
    min-width: unset;
    min-height: unset;
    max-height: 220px;
    height: auto;
  }
}
@media (max-width: 480px) {
  .modal-img {
    width: 100%;
    min-width: unset;
    min-height: unset;
    max-height: 180px;
    height: auto;
  }
}


/* /////////////////////////////////// */

footer {
    background-color: #002244;
    color: #f5f5f5;
    padding: 40px 20px;
    font-family: "Segoe UI", sans-serif;
  }
  
  .footer-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .footer-left,
  .footer-right {
    flex: 1 1 250px;
    min-width: 220px; /* or 180px */
  }
  .footer-company_name {
    margin-bottom: 6px;
  }
  .footer-director {
    margin-top: 6px;
  }
  .footer-right {
    margin-left: 10px;
    line-height: 1.3;
  }
  footer h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  footer p {
    font-size: 1rem;
    margin: 4px 0;
    color: #ccc;
  }
  footer a {
    color: #00bfff;
    text-decoration: none;
  }
  
  footer a:hover {
    text-decoration: underline;
  }
  
  /* /////////////////////////////////// */
  