@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap");

:root {
  --bg-main: #f7faf7;
  --bg-soft: #eef6ef;
  --surface: #ffffff;
  --surface-2: #f5f8f5;
  --line: #d9e4d9;
  --text-main: #1f2937;
  --text-soft: #4b5563;
  --primary: #0f766e;
  --primary-dark: #0b5e58;
  --accent: #d4a017;
  --accent-soft: rgba(212, 160, 23, 0.15);
  --glow: rgba(15, 118, 110, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Tajawal", "Cairo", sans-serif;
  background:
    radial-gradient(
      circle at 10% 12%,
      rgba(15, 118, 110, 0.09) 0%,
      rgba(15, 118, 110, 0) 38%
    ),
    radial-gradient(
      circle at 92% 2%,
      rgba(212, 160, 23, 0.12) 0%,
      rgba(212, 160, 23, 0) 30%
    ),
    var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-title {
  font-family: "Cairo", "Tajawal", sans-serif;
}

.site-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.logo-footer {
  max-width: 100%;
  max-height: 100%;
}

.logo-loader {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.section-grid-overlay {
  position: relative;
}

.section-grid-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.nav-glass {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(10px);
}

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(248, 252, 248, 0.74);
  backdrop-filter: blur(3px);
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-core {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  border: 1px solid #dfe8df;
  position: relative;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.loader-ring {
  position: absolute;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  animation: ringSpin 1.2s linear infinite;
}

@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}

.hero-shell {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

.hero-dark {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-accent {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(15, 118, 110, 0.2),
    rgba(15, 118, 110, 0)
  );
  filter: blur(8px);
  top: -120px;
  left: -90px;
  pointer-events: none;
}

.hero-pulse {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.5);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 18px rgba(15, 118, 110, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
  }
}

.industrial-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #ffffff, #f7faf7);
  border-radius: 1.1rem;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.industrial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow:
    0 18px 35px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 118, 110, 0.1);
}

.img-zoom-wrap {
  overflow: hidden;
}

.img-zoom-wrap img {
  transition: transform 0.5s ease;
}

.industrial-card:hover .img-zoom-wrap img {
  transform: scale(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.brand-card {
  position: relative;
  overflow: hidden;
}

.brand-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.brand-card:hover::after {
  transform: translateX(100%);
}

.brand-logo-zone {
  filter: grayscale(1);
  transition:
    filter 0.35s ease,
    transform 0.35s ease;
}

.brand-logo-img {
  width: 100%;
  max-width: 120px;
  height: 48px;
  object-fit: contain;
}

.brand-card:hover .brand-logo-zone {
  filter: grayscale(0);
  transform: translateY(-3px);
}

.counter-number {
  font-variant-numeric: tabular-nums;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #475569;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(
    120deg,
    rgba(15, 118, 110, 0.12),
    var(--accent-soft)
  );
  color: #0f172a;
  border-color: rgba(15, 118, 110, 0.45);
}

.floating-contact,
.scroll-top-btn {
  position: fixed;
  z-index: 60;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.floating-contact {
  left: 18px;
  bottom: 18px;
}

.scroll-top-btn {
  left: 18px;
  bottom: 86px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.scroll-top-btn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.magnetic-btn {
  transition: transform 0.2s ease;
  will-change: transform;
}

#cursor-glow {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(15, 118, 110, 0.16),
    rgba(15, 118, 110, 0)
  );
  transform: translate(-50%, -50%);
  transition: opacity 0.28s ease;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

.timeline-line {
  position: absolute;
  top: 0;
  right: 1rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(15, 118, 110, 0.45),
    rgba(15, 118, 110, 0)
  );
}

.footer-dark {
  background: linear-gradient(120deg, #f5f9f5, #ffffff 45%, #f8fbf8);
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

@media (max-width: 767px) {
  .hero-shell {
    min-height: 82vh;
  }

  .hero-accent {
    width: 260px;
    height: 260px;
  }

  #cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
