:root {
  --primary: #355a92;
  --primary-dark: #253a63;
  --primary-light: #e8edf8;
  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #e5e7eb;
  --radius-lg: 1.25rem;
  --radius-md: 1rem;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.15);
  --shadow-subtle: 0 8px 20px rgba(15, 23, 42, 0.08);
  --animation-duration: 0.3s;
  --vh: 1vh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  overflow-x: hidden;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.page-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  flex: 1;
  overflow-x: hidden;
}

.container-fix {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header - Fixed full width */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244, 246, 251, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem 1rem;
  }
}

.brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  min-height: 80px;
}

@media (max-width: 1024px) {
  .brand-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-height: 60px;
  }
}

/* New container for centralized brand */
.brand-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  text-decoration: none;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}

@media (max-width: 1024px) {
  .brand {
    flex-direction: row;
    gap: 0.8rem;
    width: 100%;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .brand {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.brand-logo {
  width: 280px;
  height: auto;
  transition: width var(--animation-duration) ease;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .brand-logo {
    width: 240px;
  }
}

@media (max-width: 1024px) {
  .brand-logo {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .brand-logo {
    width: 180px;
    max-width: 70vw;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  text-align: left;
  min-width: 0;
}

@media (max-width: 1024px) {
  .brand-text {
    text-align: left;
    min-width: 0;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .brand-text {
    align-items: center;
    width: 100%;
    text-align: center;
  }
}

.brand-text .name {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--primary-dark);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1200px) {
  .brand-text .name {
    font-size: 1.7rem;
  }
}

@media (max-width: 1024px) {
  .brand-text .name {
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 768px) {
  .brand-text .name {
    font-size: 1.6rem;
    white-space: normal;
    text-align: center;
    margin-top: 0.3rem;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.1;
  }
}

.brand-text .tagline {
  font-size: 1.05rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .brand-text .tagline {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 768px) {
  .brand-text .tagline {
    font-size: 0.9rem;
    white-space: normal;
    text-align: center;
    margin-top: 0.2rem;
    word-break: normal;
    overflow-wrap: normal;
  }
}

/* Mobile Menu - FIXED POSITION */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
  z-index: 1001;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  background: var(--primary-light);
  border: 2px solid var(--primary-dark);
}

/* FIX: Ensure it's visible on mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  transition: var(--animation-duration);
  display: block;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

.mobile-spacer {
  display: none;
  width: 44px;
}

@media (max-width: 768px) {
  .mobile-spacer {
    display: block;
    visibility: hidden;
  }
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

@media (max-width: 1024px) {
  .nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--animation-duration) ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
    height: 100vh;
    overflow-y: auto;
    width: 100%;
    padding-top: 80px;
    margin-top: 0;
    border-top: none;
  }

  .nav-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  flex-wrap: wrap;
  min-width: 0;
}

@media (max-width: 1200px) {
  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 1rem;
    font-size: 1rem;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    font-size: 1.15rem;
    margin-top: 2rem;
  }
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--muted);
  font-weight: 700;
  transition: color var(--animation-duration) ease;
  white-space: nowrap;
  text-decoration: none;
  display: block;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
  transition: width var(--animation-duration) ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

/* Mobile-only social and language */
.mobile-nav-actions {
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }
  
  .mobile-social {
    display: flex !important;
    width: 60px !important;
    height: 60px !important;
  }
  
  .mobile-lang-toggle {
    display: flex !important;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .nav-actions {
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav-actions {
    display: none;
  }
}

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--primary-light);
  border: 2px solid var(--primary-dark);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
  transition: all var(--animation-duration) ease;
  flex-shrink: 0;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 1024px) {
  .nav-social {
    width: 50px;
    height: 50px;
  }
}

.instagram-logo {
  width: 28px;
  height: 28px;
}

@media (max-width: 1024px) {
  .instagram-logo {
    width: 24px;
    height: 24px;
  }
}

.lang-toggle-group {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e5ebfa;
  padding: 3px;
  flex-shrink: 0;
}

.lang-toggle {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--primary-dark);
  transition: background var(--animation-duration) ease, color var(--animation-duration) ease;
  min-width: 44px;
  min-height: 44px;
}

.lang-toggle[aria-pressed="true"] {
  background: var(--primary-dark);
  color: #fff;
}

.hero {
  margin-top: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, #f5f7fc 0%, #eef2fb 60%, #f4f6fb 100%);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem 1rem;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 3rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-text {
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.hero-text p {
  margin: 0 0 1.8rem;
  color: var(--muted);
  max-width: 100%;
  font-size: 1.15rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.eyebrow {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  display: block;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: var(--primary-dark);
  font-weight: 800;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
    line-height: 1.2;
  }
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #e5ebfa;
  color: var(--primary-dark);
  font-size: 1.03rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 1.1rem;
  color: var(--muted);
  width: 100%;
  max-width: 100%;
}

.hero-meta strong {
  color: var(--primary-dark);
  font-size: 1.18rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  grid-template-rows: auto auto;
  gap: 1.2rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .hero-visual-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.card-placeholder {
  background: #e5ebfa;
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.card-placeholder.large {
  grid-column: 1 / 3;
  min-height: 220px;
}

@media (max-width: 768px) {
  .card-placeholder.large {
    grid-column: 1;
    min-height: 180px;
  }
}

.card-placeholder-label {
  font-size: 0.97rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.card-placeholder-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.card-placeholder-meta {
  font-size: 1.03rem;
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section {
  margin-top: 2.8rem;
  padding: 0 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .section {
    padding: 0 1rem;
    margin-top: 2rem;
  }
}

.section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.section-header-content {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 0.4rem;
  text-align: center;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-subtitle {
  font-size: 1.13rem;
  color: var(--muted);
  margin: 0;
  text-align: center;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 1.2rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

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

.project-card {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  aspect-ratio: 16 / 11;
  cursor: pointer;
  transition: transform var(--animation-duration) ease, box-shadow var(--animation-duration) ease, border-color var(--animation-duration) ease;
  width: 100%;
  max-width: 100%;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, #1e293b33 0%, #02061788 40%, #020617aa 75%, #020617dd 100%);
  opacity: 1;
  z-index: 1;
}

.project-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--animation-duration) ease;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.1rem;
  color: #f9fafb;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.project-info {
  margin: 0;
  padding: 0.8rem 0.4rem 0.1rem;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.84),
    rgba(15, 23, 42, 0.6),
    transparent
  );
  border-radius: 1rem 1rem 0 0;
  text-align: center;
  width: 100%;
}

.project-location {
  font-size: 1.25rem;
  color: white;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.status-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .status-overview-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.status-overview-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.status-overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.status-overview-card:hover::before {
  transform: scaleX(1);
}

.status-overview-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.status-overview-number {
  display: inline-block;
  font-size: 3.6rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  line-height: 1;
  transition: all 0.3s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.status-overview-plus {
  display: inline-block;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 0.2rem;
  vertical-align: top;
}

.status-overview-label {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.status-overview-description {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.status-info-panel {
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.4rem 1.6rem 1.6rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.status-info-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  overflow-wrap: break-word;
  word-break: break-word;
}

.status-info-text {
  margin: 0.3rem 0;
  font-size: 1.07rem;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.status-list {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.status-list li {
  margin-bottom: 0.15rem;
}

.highlight-layout {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr;
  gap: 1.6rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .highlight-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.highlight-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.6rem 1.7rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.expertise-content {
  margin-top: 1rem;
  width: 100%;
}

.highlight-quote {
  margin: 1rem 0 1.5rem;
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.expertise-details {
  margin-top: 1.5rem;
  width: 100%;
}

.expertise-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
}

.expertise-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.expertise-item i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.expertise-item h4 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

.expertise-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.highlight-media {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: space-between;
  width: 100%;
}

.mission-block {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.mission-title {
  margin: 0 0 0.8rem;
  font-size: 1.19rem;
  font-weight: 700;
  color: var(--primary-dark);
  overflow-wrap: break-word;
  word-break: break-word;
}

.mission-text {
  margin: 0;
  font-size: 1.07rem;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-block {
  margin-top: 3rem;
  width: 100%;
  max-width: 100%;
}

.team-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.team-header-content {
  flex: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.team-title {
  margin: 0 0 0.8rem;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-subtitle {
  margin: 0;
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .team-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.team-stat-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.team-stat-number {
  display: inline-block;
  font-size: 3.6rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  line-height: 1;
  transition: all 0.3s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-stat-plus,
.team-stat-percent {
  display: inline-block;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 0.2rem;
  vertical-align: top;
}

.team-stat-label {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-stat-description {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .team-members-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.team-member-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.team-member-info {
  position: relative;
  z-index: 2;
  width: 100%;
}

.team-member-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-light);
  width: 100%;
}

.team-member-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-member-role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.team-member-text {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
}

.newsletter-section {
  margin-top: 3rem;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.newsletter-inner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 0;
  padding: 3rem 1.5rem;
  color: white;
  box-shadow: var(--shadow-soft);
  width: 100%;
  margin: 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .newsletter-inner {
    padding: 2rem 1rem;
  }
}

.newsletter-header {
  text-align: center;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 100%;
}

.newsletter-header-content {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.newsletter-header .section-title {
  color: white;
  margin-bottom: 1rem;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

.newsletter-header .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 700px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.newsletter-benefits {
  padding: 1.5rem;
  width: 100%;
}

.benefits-title {
  margin: 0 0 1.5rem;
  font-size: 1.55rem;
  color: white;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.benefit-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: all var(--animation-duration) ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100%;
}

.benefit-item i {
  font-size: 1.6rem;
  color: #e5ecff;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.benefit-item h4 {
  margin: 0 0 0.5rem;
  color: white;
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

.benefit-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.newsletter-form-wrapper {
  padding: 1.5rem;
  width: 100%;
}

.newsletter-form-container {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 100%;
}

.form-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--primary-dark);
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

.form-description {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.newsletter-form {
  width: 100%;
  margin: 0;
  max-width: 100%;
}

.form-group {
  margin-bottom: 0.75rem;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all var(--animation-duration) ease;
  background: #fafafa;
  height: 50px;
  color: #333;
  font-family: inherit;
  max-width: 100%;
}

.form-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(53, 90, 146, 0.1);
  outline: none;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.consent-checkbox {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.consent-label {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  cursor: pointer;
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}

.newsletter-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  height: 55px;
  margin: 0.5rem 0 1rem;
  background: var(--primary-dark);
  border: none;
  color: white;
  cursor: pointer;
  transition: all var(--animation-duration) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  min-height: 44px;
  max-width: 100%;
}

.newsletter-btn:hover:not(:disabled) {
  background: var(--primary);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 0.95rem;
  transition: transform var(--animation-duration) ease;
}

.form-error {
  display: none;
  color: #dc2626;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.form-input.error {
  border-color: #dc2626;
}

.form-message {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  width: 100%;
  max-width: 100%;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.site-footer {
  background: var(--primary-dark);
  color: #e5ecff;
  padding-top: 2.5rem;
  margin-top: 3rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.footer-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .footer-inner {
    padding: 0 1rem;
  }
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  max-width: 100%;
}

.footer-company.centered {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100%;
}

.footer-brand.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.footer-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
  max-width: 100%;
}

.company-info.centered {
  text-align: center;
  width: 100%;
}

.company-name {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  color: white;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

.company-tagline {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.iso-certifications {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.iso-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  transition: all var(--animation-duration) ease;
  width: 100%;
  max-width: 200px;
}

.iso-badge i {
  font-size: 1.5rem;
  color: #4ade80;
}

.iso-badge:nth-child(2) i {
  color: #60a5fa;
}

.iso-badge:nth-child(3) i {
  color: #f87171;
}

.iso-badge span {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

.iso-badge small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.company-description.centered {
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-size: 1.05rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
  max-width: 100%;
}

.footer-col-title {
  margin: 0;
  font-size: 1.15rem;
  color: white;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--animation-duration) ease;
  text-decoration: none;
  font-size: 1rem;
  min-height: 44px;
  max-width: 100%;
}

.footer-link:hover {
  color: white;
  transform: translateX(5px);
}

.link-icon {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.contact-item {
  display: flex;
  gap: 1rem;
  width: 100%;
  align-items: flex-start;
  max-width: 100%;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-top: 0.25rem;
}

.contact-content strong {
  display: block;
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-content p {
  margin: 0.25rem 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-content a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--animation-duration) ease;
  font-size: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-content a:hover {
  color: white;
  text-decoration: underline;
}

.business-hours {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  flex-wrap: wrap;
  max-width: 100%;
}

.hours-days strong {
  color: white;
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hours-time {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  transition: all var(--animation-duration) ease;
  font-size: 0.95rem;
  text-decoration: none;
  width: 100%;
  min-height: 44px;
  max-width: 100%;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(5px);
}

.social-link i {
  font-size: 1.05rem;
  width: 20px;
}

.newsletter-cta {
  margin-top: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.newsletter-cta h5 {
  margin: 0 0 0.5rem;
  color: white;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.newsletter-cta p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.newsletter-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all var(--animation-duration) ease;
  text-decoration: none;
  font-size: 1rem;
  min-height: 44px;
  max-width: 100%;
}

.newsletter-cta-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100%;
}

.footer-bottom-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  text-align: center;
  width: 100%;
}

.copyright p {
  margin: 0.25rem 0;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

.website-url {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.website-url a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

.website-url a:hover {
  text-decoration: underline;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-dark);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--animation-duration) ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 44px;
  min-height: 44px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.section--ar {
  display: none;
}

body.lang-ar .section--ar {
  display: block;
}

body.lang-ar .section--en {
  display: none;
}

body.lang-ar .section-header-content,
body.lang-ar .team-header-content {
  text-align: right;
}

body.lang-ar .section-title,
body.lang-ar .section-subtitle,
body.lang-ar .team-title,
body.lang-ar .team-subtitle {
  text-align: right;
}

body.lang-ar .status-info-panel,
body.lang-ar .mission-block,
body.lang-ar .highlight-card,
body.lang-ar .team-stat-card,
body.lang-ar .team-member-card,
body.lang-ar .status-overview-card {
  text-align: right;
}

body.lang-ar .status-list {
  padding-right: 1.1rem;
  padding-left: 0;
  text-align: right;
}

body.lang-ar .expertise-item {
  direction: rtl;
  text-align: right;
}

body.lang-ar .expertise-item i {
  margin-left: 0;
  margin-right: 0.5rem;
}

body.lang-ar .consent-label {
  text-align: right;
}

body.lang-ar .form-input::placeholder {
  text-align: right;
}

body.lang-ar .newsletter-content {
  direction: rtl;
}

body.lang-ar .benefit-item {
  direction: rtl;
  text-align: right;
}

body.lang-ar .benefit-item i {
  margin-left: 0;
  margin-right: 0.5rem;
}

body.lang-ar .form-title,
body.lang-ar .form-description {
  text-align: right;
}

body.lang-ar .form-note {
  direction: rtl;
}

body.lang-ar .footer-company.centered,
body.lang-ar .company-description.centered {
  direction: rtl;
  text-align: center;
}

body.lang-ar .iso-certifications {
  direction: rtl;
}

body.lang-ar .footer-link:hover,
body.lang-ar .social-link:hover {
  transform: translateX(-5px);
}

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

.animate-fade-up {
  animation: fadeUp 0.7s ease-out both;
}

.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-container {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--primary-dark);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.modal-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 600;
  color: white;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--animation-duration) ease;
  font-size: 1.25rem;
  min-width: 44px;
  min-height: 44px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.main-image-container {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #f5f5f5;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.main-gallery-image {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.image-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

body.lang-ar .image-counter {
  right: auto;
  left: 1rem;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.thumbnail {
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 3px solid transparent;
  transition: all var(--animation-duration) ease;
  aspect-ratio: 1;
  background: #f5f5f5;
}

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

.thumbnail.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--animation-duration) ease;
}

.thumbnail:hover img {
  transform: scale(1.1);
}

body.lang-ar .thumbnail-grid {
  direction: rtl;
}

.image-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nav-btn {
  background: var(--primary-dark);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--animation-duration) ease;
  font-size: 1.25rem;
  min-width: 44px;
  min-height: 44px;
}

.nav-btn:hover:not(:disabled) {
  background: var(--primary);
  transform: scale(1.1);
}

body.lang-ar .image-navigation {
  direction: rtl;
}

.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;
}

@media print {
  .site-header,
  .back-to-top,
  .mobile-menu-toggle,
  .nav-social,
  .lang-toggle-group,
  .newsletter-section,
  .newsletter-cta-btn,
  .gallery-modal {
    display: none !important;
  }
  
  .hero,
  .section,
  .footer-inner {
    padding: 1rem 0 !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
  
  .project-card {
    break-inside: avoid;
  }
}

code, pre, .code-block {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  word-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
  -webkit-overflow-scrolling: touch;
}

pre {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1rem 0;
  border: 1px solid #ddd;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }
  
  .page-shell {
    overflow-x: hidden;
    width: 100%;
  }
  
  @supports (padding: max(0px)) {
    .hero, 
    .section,
    .site-footer {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
  }
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  overflow-x: auto;
  display: block;
}

table th,
table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

@media (max-width: 768px) {
  table {
    font-size: 0.9rem;
  }
  
  table th,
  table td {
    padding: 0.5rem;
  }
}