* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #222;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER ================= */

.header {
  background: #ffffff;
  color: #106383;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: relative;
}

.logo {
  height: 55px;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
}

.nav a {
  color: #106383;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  padding: 10px 15px;
}

.nav a:hover {
  background: rgba(16, 99, 131, 0.1);
  border-radius: 6px;
}

/* LANGUAGE */
.lang-switch button {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #141a3e;
  color: #fff;
}

/* ================= HERO ================= */

.hero {
  background: #ffffff;
  padding: 60px 0;
}

.hero h1 {
  font-size: 36px;
}

.hero p {
  max-width: 700px;
  line-height: 1.6;
}

/* ================= CONTENT ================= */

section {
  padding: 40px 0;
}

section h2 {
  margin-bottom: 25px;
  font-size: 28px;
  text-align: center;
}

.section-text {
  max-width: 800px;
  line-height: 1.7;
}

/* ================= IMAGES ================= */

.full-img {
  width: 100%;
  margin: 20px 0;
}

.about-img {
  max-width: 620px;
  width: 100%;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
}

/* ================= SERVICES ================= */

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-box {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

/* ================= GALLERY ================= */

.category {
  margin-bottom: 10px;
}

.subcategory {
  background: #f8fbfc;
  padding: 20px 22px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #e0edf2;
}

.subcategory h3 {
  margin: 0 0 14px 0;
  font-size: 16px;
  color: #444;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #106383 #e0edf2;
  padding-bottom: 10px;
}

.gallery::-webkit-scrollbar {
  height: 5px;
}

.gallery::-webkit-scrollbar-track {
  background: #e0edf2;
  border-radius: 4px;
}

.gallery::-webkit-scrollbar-thumb {
  background: #106383;
  border-radius: 4px;
}

.category-title {
  font-size: 20px;
  color: #106383;
  margin: 35px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #106383;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(16, 99, 131, 0.25);
  border-color: #106383;
}

/* ================= VIEWER ================= */

.viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
}

.viewer img {
  max-width: 90%;
  max-height: 90%;
}

.viewer-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}

.viewer-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  user-select: none;
}

.viewer-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.viewer-btn.left {
  left: 20px;
}

.viewer-btn.right {
  right: 20px;
}

/* ================= FOOTER ================= */

.footer {
  background: #106383;
  color: #fff;
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
}

/* ================= LANGUAGE ================= */

.mobile-only {
  display: none;
}

.menu-lang {
  text-align: center;
  color: #fff;
  margin-top: 10px;
}

.menu-lang span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.lang-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.lang-buttons button {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: #106383;
  cursor: pointer;
}

/* ================= BURGER ================= */

.burger {
  display: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 30px;
  height: 3px;
  background: #106383;
  margin: 5px 0;
  transition: 0.3s;
}

/* ACTIVE STATE */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .burger {
    display: block;
    position: absolute;
    top: 20px;
    right: 15px;
    z-index: 1000;
  }

  [dir="rtl"] .burger {
    left: 15px;
    right: auto;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #106383;
    padding: 10px;
    border-radius: 12px;
    min-width: 180px;
  }

  [dir="rtl"] .nav {
    left: 20px;
    right: auto;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    color: #fff;
  }

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

  .mobile-only {
    display: block;
  }

  .desktop-lang {
    display: none;
  }

}

/* ================= DESKTOP ================= */

@media (min-width: 769px) {

  .burger {
    display: none !important;
  }

  .nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    opacity: 1;
    transform: none;
  }

}

/* ================= CONTACT FIX ================= */

@media (max-width: 768px) {

  .contact-image-overlay {
    position: static;
    background: none;
    margin-top: 15px;
  }

  .contact-overlay-content {
    text-align: center;
    color: #222;
  }

}
/* ================= HERO BUTTON ================= */

.hero-btn {
  display: inline-block;
  margin: 20px 0 30px;
  padding: 12px 28px;
  background: #106383;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.2s;
}

.hero-btn:hover {
  background: #0d4f68;
}

/* ================= STATS ================= */

.stats-section {
  background: #106383;
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 42px;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================= HOME SERVICE CARDS ================= */

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 10px;
}

.home-service-card {
  background: #f8fbfc;
  border: 1px solid #e0edf2;
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.home-service-card:hover {
  box-shadow: 0 8px 24px rgba(16, 99, 131, 0.15);
}

.home-service-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.home-service-card h3 {
  color: #106383;
  font-size: 22px;
  margin: 0 0 12px;
}

.home-service-card p {
  color: #555;
  line-height: 1.7;
  margin: 0 0 20px;
}

.home-service-card a {
  color: #106383;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #106383;
  padding-bottom: 2px;
}

/* ================= ABOUT VALUES ================= */

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: #f8fbfc;
  border: 1px solid #e0edf2;
  border-radius: 12px;
  padding: 28px 24px;
  border-top: 4px solid #106383;
}

.value-card h3 {
  color: #106383;
  margin: 0 0 12px;
  font-size: 18px;
}

.value-card p {
  color: #555;
  line-height: 1.7;
  margin: 0;
  font-size: 15px;
}

/* ================= CONTACT CARDS ================= */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.contact-card {
  background: #f8fbfc;
  border: 1px solid #e0edf2;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}

.contact-icon {
  font-size: 40px;
  margin-bottom: 14px;
}

.contact-card h3 {
  color: #106383;
  margin: 0 0 10px;
  font-size: 18px;
}

.contact-card p {
  color: #444;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ================= RESPONSIVE NEW COMPONENTS ================= */

@media (max-width: 768px) {
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .home-services-grid { grid-template-columns: 1fr; }
  .about-values       { grid-template-columns: 1fr; }
  .contact-cards      { grid-template-columns: 1fr; }
}

/* ================= MAP ================= */

.map-wrapper {
  margin-top: 40px;
}

/* ================= PROJECTS PAGE ================= */

.section-intro {
  text-align: center;
  max-width: 680px;
  margin: -10px auto 30px;
  color: #555;
  line-height: 1.7;
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 30px;
  border: 2px solid #106383;
  background: transparent;
  color: #106383;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #106383;
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e0edf2;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(16,99,131,0.15);
}

.project-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.project-card:hover .project-card-img img {
  transform: scale(1.05);
}

.project-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.project-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.project-tag.construction {
  background: #e8f4f8;
  color: #106383;
}

.project-tag.export {
  background: #e8f8ef;
  color: #1a7a4a;
}

.project-card-body h3 {
  margin: 0;
  font-size: 17px;
  color: #222;
  line-height: 1.4;
}

.project-location {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.project-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.project-more {
  font-size: 13px;
  font-weight: bold;
  color: #106383;
  margin-top: 4px;
}

/* ================= PROJECT DETAIL PANEL ================= */

.project-detail-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2000;
  overflow-y: auto;
}

.project-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 60px;
}

.detail-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #106383;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 30px;
  transition: background 0.2s;
}

.detail-close:hover {
  background: #0d4f68;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  grid-column: span 1;
}

.detail-img.active {
  grid-column: span 3;
  aspect-ratio: 16/9;
  border-color: #106383;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-info h2 {
  margin: 0;
  font-size: 26px;
  color: #222;
  line-height: 1.3;
}

.detail-info p {
  color: #555;
  line-height: 1.8;
  font-size: 16px;
  margin: 0;
}

/* ================= RESPONSIVE PROJECTS ================= */

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
