/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: white;
  background: #000;
  overflow-x: hidden;
}

/* شريط التنقل */
.navbar {
  background-color: #ff0a0a;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 15px;
  background: transparent;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-links a, .dropbtn {
  color: white;
  text-decoration: none;
  background: transparent;
  border: 1px solid white;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-links a:hover, .dropbtn:hover {
  color: black;
  background: white;
}

.dropdown {
  position: relative;
  font-weight: bold;
}

.dropdown-content {
  display: none; /* إلغاء hover */
  position: absolute;
  top: 45px;
  right: 0;
  background: rgba(20,10,109,0.8);
  padding: 12px;
  border-radius: 12px;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  z-index: 20;
  transition: all 0.2s;
}

.dropdown-content.active {
  display: flex; /* تظهر فقط عند اضافة class "active" بالـ JS */
}


.dropdown-content a {
  color: #ccc;
  font-weight: bold;
}


.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

/* HERO */
.hero {
  background: radial-gradient(#07021b);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 10vw; /* padding داخلي يعطي مساحة إضافية */
  min-height: 95vh;    /* ارتفاع أدنى للـ hero */
  overflow: hidden;
}


.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* دوائر */
.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(1vh);
}

.circle1 {
  width: 25vw;
  height: 35vh;
  background: radial-gradient(circle, #e3f63b, transparent 70%);
  top: 30vh;
  left: 60vw;
  animation: rotate1 6s linear infinite;
}

.circle2 {
  width: 20vw;
  height: 25vh;
  background: radial-gradient(circle, #9333ea, transparent 70%);
  top: 70vh;
  right: 20vw;
  animation: rotate2 8s linear infinite;
}
/* غلاف كامل */
.xsfall-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* طبقة البلور فوق النجوم */
.xsfall-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  z-index: 3;
}

/* مكان ولادة النجوم */
.xsfall-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}

/* شكل النجمة + */
.star-plus {
  position: absolute;
  top: -50px;
  width: var(--size);
  height: var(--size);
  color: var(--color);

  --line: calc(var(--size) / 2);
}

/* الخط العمودي */
.star-plus::before,
.star-plus::after {
  content: "";
  position: absolute;
  background-color: var(--color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* العمودي */
.star-plus::before {
  width: 2px;
  height: var(--size);
}

/* الأفقي */
.star-plus::after {
  height: 2px;
  width: var(--size);
}

/* حركة السقوط */
@keyframes xsfall {
  0% {
    transform: translateY(-60px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(110vh);
    opacity: 0;
  }
}

.star-plus {
  animation-name: xsfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes rotate1 {
  from { transform: rotate(0deg) translateX(20px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(20px) rotate(-360deg); }
}

@keyframes rotate2 {
  from { transform: rotate(0deg) translateX(15px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(15px) rotate(-360deg); }
}

/* blur */
.blur-layer {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  z-index: 1;
}

/* محتوى hero */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.text-side {
  flex: 1;
  max-width: 50%;
}

.company-name {
  font-size: 3rem;
  margin-bottom: 15px;
  text-align: left;
}

.tagline {
  font-size: 1.2rem;
  min-width: 40vw;
  color: #aaa;
}

.image-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-logo {
  max-width: 50vw;
  height: auto;
}
#content-container, .hero-content {
  position: relative;
  z-index: 5; /* فوق كل شيء */
}
/* أقسام ثانية */
.section {
  padding: 80px 10vw;
  background: #111;
  border-bottom: 1px solid #222;
  z-index: 10;
}
.section2 {
  display: block;
  align-items: center;
  justify-content: space-between;
  background: rgba(177, 178, 182, 0.171);
  border-radius: 15px;
  padding: 20px;
  width: 98%;
  margin: 20px auto;
  backdrop-filter: blur(5px);
  gap: 20px;
}
.rights {
  padding: 20px 10vw;
  background: #111;
  border-bottom: 1px solid #222;
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(177, 178, 182, 0.171);
  border-radius: 15px;
  padding: 20px;
  width: 98%;
  margin: 20px auto;
  backdrop-filter: blur(5px);
  gap: 20px;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.card-image {
  flex: 1;
}

.card-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.card-text {
  flex: 1;
}

.contact {
  flex: 1;
}
.contact h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #c7c7c7;
  text-align: center;
}
.contact p {
  text-align: center;
  font-size: 1rem;
  color: #ffffff;
}

.card-text h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #c7c7c7;
}

.card-text p {
  font-size: 1rem;
  color: #ffffff;
}

/* ترتيب الصورة حسب الclass */
.service-card.left-image {
  flex-direction: row;
}

.service-card.right-image {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
  .service-card {
    flex-direction: column !important; /* يجبر البطاقة تصير عمودية */
    text-align: center;
  }

  .card-image {
    width: 80%; /* حجم مناسب للصورة */
    margin: 0 auto 15px auto;
  }

  .card-text h3 {
    font-size: 1.4rem; /* تصغير العنوان على الموبايل */
  }

  .card-text p {
    font-size: 0.95rem; /* تصغير النص */
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .circle1 {
  top: 30vh;
  left: 30vw;
  }
  .circle2 {
  top: 50vh;
  right: 30vw;
  }
  .text-side {
    max-width: 100%;
  }

  .image-side {
    margin-top: 30px;
  }

  .main-logo {
    max-width: 60%;
  }

  .nav-links {
    display: none;
    font-weight: bold;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 10px;
  }

  .nav-links.active {
    display: flex;
    font-weight: bold;
  }

  .hamburger {
    display: block;
  }
}
