/* Main stylesheet for zgroup-website */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

body {
  background: #f5f7fa;
  color: #222;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

header {
  background: #0f172a;
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #fbbf24;
}

.menu {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.menu a {
  transition: 0.3s;
  font-size: 15px;
  white-space: nowrap;
}

.menu a:hover {
  color: #fbbf24;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: transparent;
  padding: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  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: 8px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 8px;
  min-width: 42px;
  min-height: 34px;
  cursor: pointer;
  transition: 0.25s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #111827;
}

.flag-icon {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  padding: clamp(90px, 14vw, 140px) 0;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.82));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.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.03);
  transition: opacity 0.8s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  margin-bottom: 20px;
}

.hero p {
  max-width: 850px;
  margin: auto;
  font-size: clamp(16px, 2.5vw, 20px);
  color: #dbe4f0;
}

.hero-btns {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  transition: 0.3s;
  font-weight: bold;
}

.btn-primary {
  background: #fbbf24;
  color: #111827;
}

.btn-primary:hover {
  background: #f59e0b;
}

.btn-outline {
  border: 1px solid white;
}

.btn-outline:hover {
  background: white;
  color: #111827;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: clamp(28px, 4.2vw, 36px);
  color: #0f172a;
  margin-bottom: 10px;
}

.section-title p {
  color: #64748b;
  max-width: 700px;
  margin: auto;
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #0f172a;
}

.services {
  background: white;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  transition: 0.3s;
  border-top: 4px solid #fbbf24;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  margin-bottom: 15px;
  color: #0f172a;
}

.companies {
  background: #eef2f7;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.company-card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.company-card h3 {
  color: #0f172a;
  margin-bottom: 12px;
}

.stats {
  background: #0f172a;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  text-align: center;
}

.stat-box h2 {
  font-size: 48px;
  color: #fbbf24;
}

.contact {
  background: white;
}

.contact-box {
  max-width: 700px;
  margin: auto;
  background: #f8fafc;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.info-item {
  text-align: center;
}

.info-item h4 {
  color: #0f172a;
  margin-bottom: 10px;
  font-size: 18px;
}

.info-item p {
  color: #64748b;
  font-size: 16px;
}

.info-item a {
  color: #fbbf24;
  font-weight: 600;
  transition: 0.3s;
}

.info-item a:hover {
  color: #f59e0b;
}

.contact-box form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button {
  background: #fbbf24;
  color: #111827;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #f59e0b;
}

.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 55px;
  height: 55px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: 0.3s;
}

.whatsapp-btn:hover {
  background: #20ba5a;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  transform: scale(1.1);
}

footer {
  background: #020617;
  color: #94a3b8;
  text-align: center;
  padding: 25px 0;
}

html[dir="ltr"] .whatsapp-btn {
  left: auto;
  right: 25px;
}

@media (max-width: 992px) {
  .about {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }
}

@media(max-width: 768px) {
  header {
    padding: 14px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  nav {
    justify-content: flex-start;
    gap: 12px;
    align-items: center;
  }

  .logo {
    margin-inline-end: auto;
  }

  .menu-toggle {
    display: inline-flex;
    order: 2;
  }

  .menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    order: 4;
    width: 100%;
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 14px;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 8px 10px;
    border-radius: 8px;
  }

  .menu a:hover {
    background: rgba(251, 191, 36, 0.12);
  }

  .lang-switcher {
    justify-content: flex-end;
    order: 3;
    width: auto;
  }

  section {
    padding: 52px 0;
  }

  .service-image {
    height: 190px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .whatsapp-btn {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
  }

  .hero {
    padding: 76px 0;
  }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  .service-card,
  .company-card,
  .contact-box {
    padding: 20px;
  }

  .service-image {
    height: 170px;
  }
}
