:root {
  --primary-cl: #d4af37;
  --primary-cl-hover: #b5952f;
  --primary-cl-rgb: 212, 175, 55;

  --bg-black: #f8f9fa; /* Now light gray */
  --bg-darker: #e9ecef; /* Now lighter gray */
  --bg-card: #ffffff; /* White cards */
  --bg-secondary: #ffffff; /* White footer */
  --bg-light: #e2e6ea;

  --text-white: #111111; /* Dark text on light background */
  --text-gray: #444444; /* Darker gray text */
  --text-muted: #666666; /* Muted text */
  --text-dark: #888888; /* Lighter text */

  --whatsapp-green: #25d366;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  background-color: var(--bg-black);
  color: var(--text-white);
  scroll-behavior: smooth;
}

/* ==========================================
                       HEADER SECTION
           ========================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: #111111;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logo span {
  color: var(--primary-cl);
}
.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
nav ul {
  display: flex;
  list-style: none;
}
nav ul li {
  margin: 0 15px;
}
nav ul li a {
  text-decoration: none;
  color: #333333;
  font-size: 15px;
  font-weight: 600;
  transition: 0.3s ease;
  position: relative;
  padding: 5px 0;
}
nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary-cl);
  transition: 0.3s ease;
}
nav ul li a:hover {
  color: var(--primary-cl);
}
nav ul li a:hover::after {
  width: 100%;
  left: 0;
  right: auto;
}

nav ul li a.nav-contact-btn {
  background: var(--primary-cl);
  color: #fff !important;
  padding: 8px 24px !important;
  border-radius: 25px;
  animation: pulseContactBtn 2s infinite;
  font-weight: 700;
  display: inline-block;
}
nav ul li a.nav-contact-btn::after {
  display: none;
}
nav ul li a.nav-contact-btn:hover {
  background: #111;
  color: var(--primary-cl) !important;
  transform: translateY(-3px);
  animation: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
@keyframes pulseContactBtn {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* ==========================================
                        HERO SECTION
           ========================================== */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

/* ==========================================
                    CONSULTATION SECTION
           ========================================== */
.consultation-section {
  padding: 100px 8%;
  background: #d4af37;
  position: relative;
  overflow: hidden;
}
.consult-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.consult-content {
  flex: 1;
  text-align: right;
  z-index: 10;
}
.consult-content h3 {
  font-size: 1.75rem;
  margin-bottom: 10px;
  color: #000000;
}
.consult-content h2 {
  font-size: 2.8rem;
  margin: 15px 0;
  color: #000000;
}
.badge {
  color: var(--primary-cl);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.divider {
  width: 80px;
  height: 3px;
  background: var(--primary-cl);
  margin-bottom: 30px;
}
.divider.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.consult-content p {
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 30px;
  line-height: 1.8;
}
.consult-features {
  list-style: none;
  margin-bottom: 40px;
}
.consult-features li {
  margin-bottom: 15px;
  color: #2e2e2e;
  display: flex;
  align-items: center;
  gap: 10px;
}
.consult-features li span {
  color: var(--primary-cl);
  font-weight: bold;
}

.btn-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 38px;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  border-radius: 0;
  border: 1px solid rgba(212, 175, 55, 0.5);
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-consult::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000, #1f1f1f);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-consult:hover {
  color: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  transform: translateY(-3px);
}
.btn-consult:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.consult-header-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 25px;
}
.consult-header-group h2 {
  margin: 0 !important;
  font-size: 2.5rem;
  line-height: 1.2;
  background: linear-gradient(to left, #000000, #000000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.consult-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}
.consult-meta .divider {
  margin: 0;
  width: 60px;
  height: 2px;
}

.consult-visual {
  flex: 1.2;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}
.showcase-wrapper {
  position: relative;
  width: 340px;
  height: 460px;
  transform-style: preserve-3d;
  animation: float3D 8s infinite ease-in-out;
}
@keyframes float3D {
  0%,
  100% {
    transform: rotateY(-10deg) rotateX(10deg) translateY(0);
  }
  50% {
    transform: rotateY(-15deg) rotateX(5deg) translateY(-20px);
  }
}
.glass-panel-back {
  position: absolute;
  top: 15px;
  left: -25px;
  right: 25px;
  bottom: -15px;
  border-radius: 25px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(240, 240, 240, 0.8)
  );
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateZ(-40px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.glass-panel-middle {
  position: absolute;
  top: 5px;
  left: -10px;
  right: 10px;
  bottom: -5px;
  border-radius: 25px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transform: translateZ(-20px);
  backdrop-filter: blur(4px);
}
.glass-panel-front {
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(250, 250, 250, 0.98)
  );
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: -20px 30px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  transform: translateZ(0);
}

.visual-core {
  width: 110px;
  height: 110px;
  background: rgba(212, 175, 55, 0.1);
  border: 2px dashed rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  position: relative;
  animation: spinBg 20s linear infinite;
}
@keyframes spinBg {
  100% {
    transform: rotate(360deg);
  }
}

.visual-core-inner {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #d4af37, #b5952f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
  animation: pulseCore 3s infinite ease-in-out reverse;
}
.visual-core-inner i {
  font-size: 2.2rem;
  color: #fff;
}

.glass-panel-front h4 {
  color: #111;
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.glass-panel-front p {
  color: #555;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 25px;
}

.tech-stats {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 20px;
}
.tech-stat-item {
  text-align: center;
}
.tech-stat-item span {
  display: block;
  color: #d4af37;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 5px;
}
.tech-stat-item small {
  color: #666;
  font-size: 0.8rem;
}

.info-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #333;
  z-index: 20;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  font-weight: 600;
}
.info-tag i {
  color: #d4af37;
  font-size: 1.2rem;
}

.tag-1 {
  top: 5%;
  right: -5%;
  animation: floating 5s infinite ease-in-out;
}
.tag-2 {
  bottom: 15%;
  left: -15%;
  animation: floating 6s infinite ease-in-out 1s;
}
.tag-3 {
  top: 40%;
  left: -20%;
  animation: floating 7s infinite ease-in-out 0.5s;
}

/* ==========================================
                      PRODUCTS SECTION
           ========================================== */
.products-section {
  padding: 100px 8%;
  background: #ffffff;
  border-top: 1px solid rgba(212, 175, 55, 0.05);
}
.products-header {
  text-align: center;
  margin-bottom: 60px;
}
.products-header h2 {
  font-size: 2.8rem;
  color: #000;
  margin: 15px 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
  align-items: stretch;
}
.product-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
}
.product-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  box-shadow: none;
  transition: 0.3s ease;
}
.product-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 15px;
}
.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--bg-light), #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s ease;
}
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.4s ease;
}
.product-wrapper:hover .img-placeholder img {
  transform: scale(1.05);
}
.product-info {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
}
.product-info h3 {
  color: #111;
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.4;
}
.index-products {
  color: #0206ff;
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.4;
}
.pke-alarm {
  color: #33826e;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.05);
}
.product-rating {
  color: #f39c12;
  font-size: 0.85rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.product-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 15px 5px 0;
}
.btn-buy-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}
.btn-buy-whatsapp:hover {
  background-color: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  color: #fff;
}
.btn-buy-whatsapp i {
  font-size: 1.2rem;
}

.btn-more {
  display: inline-block;
  padding: 15px 50px;
  border: 2px solid var(--primary-cl);
  color: var(--primary-cl);
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: 0.3s;
}
.btn-more:hover {
  background: var(--primary-cl);
  color: #000;
}

/* ==========================================
                    CALL TO ACTION (CTA)
           ========================================== */
.cta-banner {
  position: relative;
  padding: 120px 8%;
  text-align: center;
  background:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(17, 17, 17, 0.95) 100%
    ),
    url("Assets/Gallery/index/Ambient Light.png") center/cover fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.cta-subtitle {
  color: #d4af37;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.cta-title {
  font-size: 3.2rem;
  color: #fff;
  margin-bottom: 45px;
  line-height: 1.3;
  font-weight: 700;
}

/* ==========================================
                      ELEGANT SEPARATOR
           ========================================== */
.elegant-separator {
  width: 80%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(
    to left,
    transparent,
    rgba(212, 175, 55, 0.5),
    transparent
  );
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.elegant-separator::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border: 2px solid var(--primary-cl);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.elegant-separator::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-cl);
  transform: rotate(45deg);
}

/* ==========================================
                       FOOTER SECTION
           ========================================== */
.main-footer {
  background-color: var(--bg-secondary);
  color: var(--text-white);
  padding: 80px 8% 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-section h3 {
  color: var(--primary-cl);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
}
.footer-section h3::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: var(--primary-cl);
}
.footer-section p {
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.footer-section ul {
  list-style: none;
}
.footer-section ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-muted);
}
.footer-section.links ul li a {
  text-decoration: none;
  color: var(--text-muted);
  transition: 0.3s;
}
.footer-section.links ul li a:hover {
  color: var(--primary-cl);
  padding-right: 5px;
}
.footer-section.contact ul li a {
  text-decoration: none;
  color: var(--text-muted);
  transition: 0.3s;
}
.footer-section.contact ul li a:hover {
  color: var(--primary-cl);
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.helmak {
  text-decoration: none;
  color: var(--primary-cl);
  text-shadow: 0 0 10px var(--primary-cl-hover);
}

/* ==========================================
                     FLOATING WHATSAPP
           ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp-green);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 1000;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--primary-cl-hover);
}

/* ==========================================
                         ANIMATIONS
           ========================================== */
@keyframes rotateShape {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes morphing {
  0% {
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  }
  100% {
    border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
  }
}
@keyframes pulseCore {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 30px rgba(212, 175, 55, 0.5),
      inset 0 0 15px rgba(255, 255, 255, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 50px rgba(212, 175, 55, 0.8),
      inset 0 0 20px rgba(255, 255, 255, 0.8);
  }
}
@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ==========================================
                OFFERS SLIDER
========================================== */

.offers-slider-container {
  position: relative;
  max-width: 1300px;
  margin: -70px auto 50px;
  padding: 0 20px;
  z-index: 100;
}

.offers-wrapper-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.offers-nav {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.offers-nav .swiper-button-prev,
.offers-nav .swiper-button-next {
  position: static;
  width: 50px;
  height: 50px;
  background: #ffffff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  margin: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.offers-nav .swiper-button-prev::after,
.offers-nav .swiper-button-next::after {
  font-size: 18px;
  font-weight: bold;
}

.offers-nav .swiper-button-prev:hover,
.offers-nav .swiper-button-next:hover {
  background: var(--primary-cl);
  color: #ffffff;
  border-color: var(--primary-cl);
  transform: scale(1.08);
}

.offersSwiper {
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 10px 5px;
  border-radius: 20px;
}

/* ==========================================
                IMAGE CARD
========================================== */

.offer-image {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.offer-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.offer-image:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

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

/* Overlay */

.offer-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.offer-image:hover::after {
  opacity: 1;
}

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

@media (max-width: 992px) {

  .offers-wrapper-inner {
    flex-direction: column;
    gap: 20px;
  }

  .offers-nav {
    order: 2;
  }

  .offersSwiper {
    order: 1;
  }

  .offer-image img {
    height: 240px;
  }

}

@media (max-width: 768px) {

  .offers-slider-container {
    margin: -50px auto 40px;
    padding: 0 15px;
  }

  .offers-nav .swiper-button-prev,
  .offers-nav .swiper-button-next {
    width: 45px;
    height: 45px;
  }

  .offer-image img {
    height: 200px;
  }

}

@media (max-width: 576px) {

  .offer-image img {
    height: 170px;
  }

}
.offer-name{
    margin:12px 0 0;
    text-align:center;
    font-size:18px;
    font-weight:700;
    color:#222;
}


/* ==========================================
                      CATEGORIES SECTION
           ========================================== */
.page-header {
  padding: 150px 8% 80px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(17, 17, 17, 0.9) 100%),
    url("Gallery/index/products-bg.png") center/cover fixed;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}
.page-header h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 800;
}
.page-header p {
  color: var(--primary-cl);
  font-size: 1.2rem;
  font-weight: 600;
}

.categories-section {
  padding: 80px 8%;
  background: var(--bg-black);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.category-card {
  background: var(--bg-card);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  position: relative;
}
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
}
.category-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
  padding: 20px;
}
.category-card:hover .category-image img {
  transform: scale(1.1);
}
.category-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0.5;
  transition: opacity 0.4s ease;
}
.category-card:hover .category-image-overlay {
  opacity: 0.8;
}
.category-info {
  padding: 30px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.category-icon {
  width: 70px;
  height: 70px;
  background: #fff;
  color: var(--primary-cl);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid rgba(212, 175, 55, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}
.category-card:hover .category-icon {
  background: var(--primary-cl);
  color: #fff;
  border-color: #fff;
  transform: translateX(-50%) rotateY(360deg);
}
.category-info h2 {
  color: #111;
  font-size: 1.5rem;
  margin-top: 25px;
  margin-bottom: 12px;
  font-weight: 700;
}
.category-info p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-cl);
  font-weight: 700;
  font-size: 1.05rem;
  transition: 0.3s;
}
.category-btn i {
  transition: transform 0.3s ease;
}
.category-card:hover .category-btn {
  color: #111;
}
.category-card:hover .category-btn i {
  transform: translateX(-5px);
}

/* ==========================================
                        RESPONSIVE
           ========================================== */
@media (max-width: 1024px) {
  .consult-container {
    flex-direction: column;
    text-align: center;
  }
  .consult-content {
    order: 2;
  }
  .consult-visual {
    order: 1;
    width: 100%;
    height: 450px;
  }
  .abstract-shape {
    width: 300px;
    height: 300px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-section.about {
    grid-column: span 2;
    text-align: center;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  header {
    flex-direction: column;
    gap: 15px;
  }
  .consult-header-group {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .consult-header-group h2 {
    font-size: 1.8rem;
  }
  .consult-meta {
    justify-content: center;
  }
  .cta-title {
    font-size: 2.5rem;
  }
  .offers-wrapper-inner {
    flex-direction: column-reverse;
    gap: 20px;
    width: 100%;
  }
  .offersSwiper {
    width: 100%;
    flex: none;
  }
  .offers-nav {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  .offers-slider-container {
    margin-top: -30px;
    width: 100%;
  }

  /* Fix slider cards squeezing on tablets (768px - 1024px) */
  .offer-card {
    padding: 20px;
    gap: 15px;
  }
  .offer-icon {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
  .offer-details h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }
  .offer-details p {
    font-size: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .offer-details .price {
    font-size: 1rem;
    padding: 2px 8px;
  }
  .offer-arrow-btn {
    display: none; /* Hide to save space on tablets since they can swipe */
  }
}
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .offer-card {
    padding: 20px 15px;
    gap: 12px;
  }
  .offer-icon {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }
  .offer-details h4 {
    font-size: 1.1rem;
  }
  .offer-details p {
    font-size: 0.85rem;
  }
}
@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .consult-content h2 {
    font-size: 2rem;
  }
  .cta-title {
    font-size: 2rem;
  }
  .cta-banner {
    padding: 80px 5%;
  }
  .offers-slider-container {
    margin-top: -20px;
  }
  .offer-card {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .offer-details {
    text-align: center;
  }
  .offer-details p {
    align-items: center;
  }
}
.products-action {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}
.products-action .btn-more {
  padding: 16px 45px;
  border: 2px solid var(--primary-cl);
  background: transparent;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  border-radius: 30px;
  transition: 0.3s;
  text-decoration: none;
}
.products-action .btn-more:hover {
  background: var(--primary-cl-hover);
  color: #000;
}

/* ==========================================
                      IMAGE POP-UP MODAL
           ========================================== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}
.image-modal.show {
  display: flex;
  opacity: 1;
}
.image-modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}
.image-modal.show .image-modal-content {
  transform: scale(1);
}
.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.image-modal-close:hover {
  color: var(--primary-cl);
}
/* Sidebar Compact Style */
.side-nav-compact {
  position: fixed;
  right: 0; /* ملتصق بحافة الشاشة */
  top: 50%;
  transform: translateY(-50%);
  width: 60px; /* العرض الابتدائي (الأيقونات فقط) */
  background: #1a1a1a; /* لون داكن فخم يناسب السيارات */
  border-radius: 15px 0 0 15px; /* حواف دائرية من جهة واحدة */
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  overflow: visible;
  transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة ارتدادية خفيفة */
}

/* عند لمس القائمة يزداد العرض */
.side-nav-compact:hover {
  width: 180px;
}

.side-nav-list {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.side-nav-list li a {
  display: flex;
  align-items: center;
  height: 50px;
  text-decoration: none;
  color: #fff;
  white-space: nowrap; /* لمنع النص من النزول لسطر جديد */
  transition: background 0.3s;
}

.side-nav-list li a i {
  min-width: 60px; /* نفس عرض القائمة الصغير لضمان التوسط */
  text-align: center;
  font-size: 1.2rem;
  color: var(--primary-cl); /* لون الأيقونات */
}

.nav-text {
  opacity: 0; /* النص مخفي افتراضياً */
  visibility: hidden;
  transform: translateX(20px); /* تحريك النص قليلاً لليمين */
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 600;
}

/* عند اللمس يظهر النص */
.side-nav-compact:hover .nav-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* تأثير عند الوقوف على كل رابط */
.side-nav-list li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* التوافق مع الموبايل */
@media (max-width: 768px) {
  .side-nav-compact {
    bottom: 20px;
    top: auto;
    transform: none;
    right: 10px;
    border-radius: 15px;
    width: 50px;
  }
}

/* Submenu styles */
.side-nav-list li {
  position: relative;
}

/* Chevron arrow styling */
.submenu-chevron {
  opacity: 0;
  visibility: hidden;
  margin-right: auto;
  margin-left: 15px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.side-nav-compact:hover .submenu-chevron {
  opacity: 1;
  visibility: visible;
}

.has-submenu:hover .submenu-chevron {
  transform: rotate(-90deg);
  color: var(--primary-cl);
}

/* Submenu container with Glassmorphism */
.submenu {
  position: absolute;
  right: 100%; /* Dynamically aligned to the left of side menu */
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px 0 0 10px;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  width: 190px;
  max-height: 420px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.5);
}

/* Submenu header */
.submenu-header {
  padding: 5px 15px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-cl);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  margin-bottom: 5px;
  text-align: right;
  letter-spacing: 0.5px;
}

/* Custom scrollbar for submenu */
.submenu::-webkit-scrollbar {
  width: 4px;
}
.submenu::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.5);
}
.submenu::-webkit-scrollbar-thumb {
  background: var(--primary-cl);
  border-radius: 2px;
}

.submenu li a {
  padding: 8px 15px !important;
  height: auto !important;
  font-size: 0.85rem !important;
  color: #ccc !important;
  display: block !important;
  text-align: right;
  transition: all 0.25s ease;
}

.submenu li a:hover {
  background: rgba(212, 175, 55, 0.12) !important;
  color: var(--primary-cl) !important;
  padding-right: 20px !important; /* Slide-in effect on hover */
}

/* Show submenu when side menu is hovered AND the specific item is hovered */
.side-nav-compact:hover .has-submenu:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

/* Adjust submenu positioning for mobile */
@media (max-width: 768px) {
  .submenu {
    right: auto;
    left: 60px; /* Expand to the right instead on mobile */
    border-radius: 0 10px 10px 0;
    max-height: 300px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
  }
}
