/* Main stylesheet for zgroup-website */

/* ============================================================
   CSS CUSTOM PROPERTIES — Dark Industrial Palette
   ============================================================ */
:root {
  --bg-0:         #030712;
  --bg-1:         #0a0f1e;
  --bg-2:         #0d1830;
  --bg-card:      #111d30;
  --bg-card-h:    #162238;
  --border:       rgba(255,255,255,0.07);
  --border-acc:   rgba(245,158,11,0.28);
  --text-1:       #f1f5f9;
  --text-2:       #94a3b8;
  --text-3:       #64748b;
  --accent:       #f59e0b;
  --accent-l:     #fbbf24;
  --accent-glow:  rgba(245,158,11,0.14);
  --accent-glow2: rgba(245,158,11,0.06);
  --header-h:     68px;
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    22px;
  --shadow-card:  0 4px 24px rgba(0,0,0,0.45);
  --shadow-acc:   0 0 0 1px var(--border-acc);
  --transition:   0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-1);
  color: var(--text-1);
  font-family: "Cairo", sans-serif;
  line-height: 1.8;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

img, video {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.js-ready [data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js-ready [data-animate].visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
  background: rgba(3,7,18,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  padding: 0;
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  height: 100%;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  gap: 18px;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-l);
  letter-spacing: 1px;
  flex-shrink: 0;
}

.menu {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.menu a {
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--accent-l);
  background: var(--accent-glow2);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--text-1);
  border-radius: 999px;
  padding: 6px 10px;
  min-height: 32px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #111827;
}

.flag-icon {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  display: block;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--text-1);
  padding: clamp(100px, 16vw, 160px) 0;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(3,7,18,0.88) 0%,
    rgba(10,15,30,0.80) 100%
  );
  z-index: 1;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 800;
  margin-bottom: 22px;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero h1 span {
  color: var(--accent-l);
}

.hero p {
  max-width: 820px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 2.2vw, 19px);
  color: #c8d8ef;
  line-height: 1.9;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #0a0f1e;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-l);
  border-color: var(--accent-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.3);
}

.btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--text-1);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION BASE STYLES
   ============================================================ */
section {
  padding: 90px 0;
}

section:nth-child(even) {
  background: var(--bg-0);
}

section:nth-child(odd) {
  background: var(--bg-1);
}

/* override for specific sections */
.services { background: var(--bg-2); }
.stats    { background: var(--bg-0); }
.contact  { background: var(--bg-2); }
#sectors  { background: var(--bg-1); }
#gallery  { background: var(--bg-0); }

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 10px auto 0;
}

.section-title p {
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 50px;
}

.about img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.about-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-l);
}

.about-text p {
  color: var(--text-2);
  margin-bottom: 16px;
  font-size: 15.5px;
  line-height: 1.9;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.vision-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--border-acc);
}

.vision-card h3 {
  font-size: 22px;
  color: var(--accent-l);
  margin-bottom: 14px;
  font-weight: 700;
}

.vision-card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
}

.values-card {
  background: linear-gradient(145deg, #0f172a, #162238);
  border-color: var(--border-acc);
}

.values-list {
  display: grid;
  gap: 10px;
}

.values-list li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--text-2);
  font-size: 15px;
}

.values-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.18);
}

/* ============================================================
   SERVICES OVERVIEW — 7 ICON CARDS
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-l));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-acc);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 54px;
  height: 54px;
  background: var(--accent-glow);
  border: 1px solid var(--border-acc);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-1);
}

.service-card h3 a {
  color: inherit;
  transition: color 0.2s;
}
.service-card h3 a:hover { color: var(--accent-l); }

.service-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ============================================================
   SECTORS DETAIL — 7 DETAILED ARTICLES
   ============================================================ */
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.service-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-detail-card:hover {
  border-color: var(--border-acc);
  background: var(--bg-card-h);
}

.detail-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--border-acc);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.service-detail-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-1);
}

.service-detail-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-l);
  margin-top: 6px;
}

.service-detail-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.85;
}

.service-detail-list {
  display: grid;
  gap: 9px;
}

.service-detail-list li {
  position: relative;
  padding-inline-start: 20px;
  color: var(--text-2);
  font-size: 14.5px;
}

.service-detail-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.detail-card-link {
  display: inline-block;
  color: var(--accent-l);
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  transition: color 0.2s;
}
.detail-card-link:hover { color: #fff; }

/* ============================================================
   COMPANIES SECTION
   ============================================================ */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: var(--transition);
}

.company-card:hover {
  border-color: var(--border-acc);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.company-card-icon {
  font-size: 36px;
  font-weight: 800;
  color: var(--border-acc);
  color: rgba(245,158,11,0.25);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.company-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}

.company-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ============================================================
   STATS / COUNTERS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  border-color: var(--border-acc);
  background: var(--bg-card-h);
}

.stat-box h2 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-box p {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3,7,18,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(3,7,18,0.55);
}

.gallery-overlay-icon {
  width: 48px;
  height: 48px;
  background: rgba(245,158,11,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay-icon {
  opacity: 1;
  transform: scale(1);
}

.gallery-overlay-icon svg {
  width: 22px;
  height: 22px;
  color: #0a0f1e;
}

.gallery-video-badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: rgba(245,158,11,0.92);
  color: #0a0f1e;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.gallery-empty {
  text-align: center;
  color: var(--text-3);
  padding: 60px 0;
  grid-column: 1/-1;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(3,7,18,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.lightbox[hidden] { display: none; }

.lightbox-content {
  max-width: min(90vw, 1100px);
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 60px rgba(0,0,0,0.7);
  object-fit: contain;
}

.lightbox-content video {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 60px rgba(0,0,0,0.7);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  inset-inline-end: 22px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--text-1);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10001;
}

.lightbox-close:hover { background: rgba(255,255,255,0.22); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--text-1);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10001;
  line-height: 1;
}

.lightbox-prev { inset-inline-end: 18px; }
.lightbox-next { inset-inline-start: 18px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.18); }

.lightbox-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-2);
  font-size: 14px;
  background: rgba(3,7,18,0.7);
  padding: 5px 14px;
  border-radius: 999px;
  z-index: 10001;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-box {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 30px;
}

.info-item {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}

.info-item:hover { border-color: var(--border-acc); }

.info-item h4 {
  color: var(--accent-l);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.info-item p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
}

.info-item a {
  color: var(--text-1);
  font-weight: 600;
  transition: color 0.2s;
  display: block;
}

.info-item a:hover { color: var(--accent-l); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  color: var(--text-3);
  text-align: center;
  padding: 28px 0;
  font-size: 14px;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  inset-inline-start: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.35);
  z-index: 998;
  transition: var(--transition);
}

.whatsapp-btn:hover {
  background: #20ba5a;
  box-shadow: 0 6px 22px rgba(37,211,102,0.5);
  transform: scale(1.1);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about img {
    height: 300px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  section { padding: 70px 0; }
}

@media (max-width: 768px) {
  header { height: auto; padding: 12px 0; }

  nav {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
  }

  .logo { margin-inline-end: auto; }

  .menu-toggle {
    display: inline-flex;
    order: 2;
  }

  .lang-switcher {
    order: 3;
  }

  .menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    order: 4;
    width: 100%;
    background: rgba(3,7,18,0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 6px;
  }

  .menu.open { display: flex; }

  .menu a {
    width: 100%;
    padding: 10px 14px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-box {
    padding: 28px 20px;
  }

  section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .container { width: 93%; }

  .hero { padding: 80px 0 70px; }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }
}






