@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

* {
  max-width: 100%;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background: #ffffff;
  color: #1b4332;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 70px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.logo {
  width: 90px;
}

.nav-links {
  display: flex;
}

.nav-links a {
  margin: 0 12px;
  color: #1b4332;
  text-decoration: none;
  font-weight: 600;
}

/* زر الثلاث شرطات */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-icon span {
  width: 26px;
  height: 3px;
  background: #1b4332;
  margin: 4px 0;
  border-radius: 2px;
}

.hero {
  min-height: calc(100dvh - 70px);
  min-height: calc(100vh - 70px); /* fallback */
  margin-top: 70px;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blob {
  position: absolute;
  width: 500px;
  opacity: 0.7;
}

.hero-text {
  text-align: center;
  z-index: 2;
  animation: fadeUp 2s ease;
}

.hero-text h1 {
  font-size: 42px;
}

.hero-text p {
  font-size: 20px;
  margin-top: 10px;
}

/* ===== SLIDER ===== */
.slider {
  width: 100%;
  height: 100dvh;
  height: 100vh; /* fallback */
  overflow: hidden;
}

.slides {
  display: flex;
  height: 100%;
  animation: slide 12s infinite;
}

.slides img {
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 40px;
  text-align: center;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  width: 250px;
  height: 150px;
  background: #d8f3dc;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.btn {
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  background: #2d6a4f;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.contact a {
  display: block;
  margin-top: 10px;
  color: #2d6a4f;
}

footer {
  background: #1b4332;
  color: white;
  text-align: center;
  padding: 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  33% {
    transform: translateX(-100%);
  }
  66% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    text-align: center;
    display: none;
  }

  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .cards {
    flex-direction: column;
  }
}
/* =====================================
   TEXT LOGO
   ===================================== */

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #1b4332;

  /* شكل حديث */
  background: linear-gradient(90deg, #2d6a4f, #52b788);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  white-space: nowrap;
}

/* موبايل */
@media (max-width: 768px) {
  .logo-text {
    font-size: 18px;
  }
}
/* =====================================
   GLASS EFFECT OVER LOGO SECTION
   ===================================== */
/* =====================================
   GLASS EFFECT OVER LOGO SECTION (FIXED)
   ===================================== */
.logo-section {
  position: relative;
  min-height: 260px;
  padding: 40px 0;
  background: linear-gradient(135deg, #b7e4c7, #ffffff);
  overflow: hidden;
}

.logo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1;
}

.logo-animation {
  position: relative;
  z-index: 2;
}

/* محتوى اللوجو */
.logo-animation {
  position: relative;
  z-index: 2;
}

/* لمعة الزجاج */
.logo-section::after {
  content: "";
  position: absolute;
  inset: -60%;

  background: linear-gradient(
    120deg,
    transparent 45%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 55%
  );

  opacity: 0.5;
  pointer-events: none;
  animation: glassShine 10s linear infinite;
  z-index: 1;
}

@keyframes glassShine {
  from {
    transform: translateX(-30%);
  }
  to {
    transform: translateX(30%);
  }
}

/* موبايل */
@media (max-width: 768px) {
  .logo-section {
    min-height: 200px;
    padding: 30px 0;
  }

  .logo-section::before {
    backdrop-filter: blur(12px);
  }
}
/* =====================================
   VIDEO SECTION
   ===================================== */
/* ================================
   VIDEO FRAME – HORIZONTAL
   ================================ */

.video-section {
  width: 100%;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* الفريم بالعرض */
.fb-video-wrapper {
  position: relative;
  width: 720px; /* عرض أفقي */
  height: 405px; /* 16:9 */
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 0 2px #d8f3dc;
}

/* الغلاف */
.video-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* زر التشغيل */
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play-btn::before {
  content: "▶";
  font-size: 60px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* الفيديو يملأ الفريم */
#localVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: none;
}

/* موبايل */
@media (max-width: 768px) {
  .fb-video-wrapper {
    width: 92vw;
    height: calc(92vw * 0.5625); /* يحافظ على 16:9 */
  }
}
/* ================================
   VIDEO BUTTON – FINAL FIX
   ================================ */

.video-btn {
  display: inline-block;
  padding: 14px 42px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  cursor: pointer;

  color: #ffffff;
  background: linear-gradient(135deg, #2d6a4f, #52b788);

  box-shadow: 0 12px 30px rgba(45, 106, 79, 0.45);
  transition: all 0.35s ease;
}

/* Hover */
.video-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(45, 106, 79, 0.6);
}

/* Active (عند الضغط) */
.video-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(45, 106, 79, 0.4);
}

/* موبايل */
@media (max-width: 768px) {
  .video-btn {
    font-size: 16px;
    padding: 12px 34px;
  }
}
/* ================================
   COMPANY LOCATIONS
   ================================ */

.locations-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.locations-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #1b4332;
  margin-bottom: 40px;
}

.location-card {
  margin-bottom: 50px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  background: #ffffff;
}

.location-header {
  background: linear-gradient(135deg, #2d6a4f, #52b788);
  color: #ffffff;
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.location-map {
  position: relative;
  width: 100%;
  height: 380px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* موبايل */
@media (max-width: 768px) {
  .location-map {
    height: 300px;
  }

  .locations-title {
    font-size: 24px;
  }
}
.location-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2d6a4f;
  color: #ffffff;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 700;
}

.location-icon {
  width: 22px;
  height: 22px;
  color: #b7e4c7; /* أخضر فاتح */
  flex-shrink: 0;
}
/* ================================
   FLOATING SOCIAL ICONS
   ================================ */

.floating-social {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;
}

.social-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.social-btn svg {
  width: 26px;
  height: 26px;
}

/* WhatsApp */
.social-btn.whatsapp {
  background: #25d366;
}

/* Facebook */
.social-btn.facebook {
  background: #1877f2;
}

/* Hover */
.social-btn:hover {
  transform: scale(1.08);
}

/* موبايل */
@media (max-width: 768px) {
  .floating-social {
    bottom: 15px;
    right: 15px;
  }

  .social-btn {
    width: 50px;
    height: 50px;
  }
}
/* =========================
   SERVICES SECTION
   ========================= */

.services-section {
  padding: 80px 40px;
  text-align: center;
}

.services-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #1b4332;
}

.services-cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.service-card {
  width: 260px;
  height: 180px;
  background: #d8f3dc;
  border-radius: 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  text-decoration: none;
  color: #1b4332;
  font-size: 18px;
  font-weight: 700;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  background: #b7e4c7;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 46px;
  height: 46px;
  color: #2d6a4f;
}

/* موبايل */
@media (max-width: 768px) {
  .service-card {
    width: 100%;
    max-width: 320px;
  }
}
/* =========================
   CONTACT SECTION
   ========================= */

.contact-section {
  background: #f1fdf6;
}

.contact-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
  color: #1b4332;
}

.contact-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;

  background: #ffffff;
  padding: 14px 22px;
  border-radius: 30px;

  text-decoration: none;
  color: #1b4332;
  font-size: 16px;
  font-weight: 700;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  background: #d8f3dc;
}

.contact-icon {
  width: 22px;
  height: 22px;
  color: #2d6a4f;
}
/* =========================
   FLOATING SOCIAL ICONS
   ========================= */

.floating-social {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.social-btn svg {
  width: 24px;
  height: 24px;
}

.social-btn:hover {
  transform: scale(1.1);
}

.social-btn.whatsapp {
  background: #25d366;
}

.social-btn.facebook {
  background: #1877f2;
}
footer {
  background: #1b4332;
  color: #ffffff;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
}
/* =========================
   REQUEST SERVICE SECTION
   ========================= */

.request-service-section {
  padding: 90px 20px;
  background: linear-gradient(135deg, #f1fdf6, #ffffff);
  text-align: center;
}

.request-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1b4332;
}

.request-desc {
  font-size: 16px;
  margin-bottom: 40px;
  color: #2d6a4f;
}

.request-form {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.form-group {
  margin-bottom: 18px;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.8px;
}

/* =========================
   ABOUT SHINE EFFECT
   ========================= */

.about-section {
  position: relative;
}

.about-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
  color: #1b4332;
  text-align: center;
}

/* حاوية النص */
.about-shine {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  color: #1b4332;
  line-height: 1.9;
  font-size: 17px;
}

/* البريق */
.about-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(82, 183, 136, 0.25) 50%,
    rgba(255, 255, 255, 0.35) 55%,
    transparent 100%
  );

  pointer-events: none;
  animation: aboutShineMove 6s ease-in-out infinite;
}

/* حركة البريق */
@keyframes aboutShineMove {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  50% {
    transform: translateX(160%);
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
  100% {
    transform: translateX(160%);
    opacity: 0;
  }
}

/* موبايل */
@media (max-width: 768px) {
  .about-shine {
    font-size: 16px;
  }
}
/* =========================
   PAGE LOADER
   ========================= */

#page-loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* إخفاء */
#page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

/* المحتوى */
.loader-content {
  text-align: center;
}

/* دائرة التحميل */
.loader-spinner {
  width: 64px;
  height: 64px;
  border: 5px solid #d8f3dc;
  border-top: 5px solid #2d6a4f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 18px;
}

/* النص */
.loader-text {
  font-size: 16px;
  font-weight: 700;
  color: #2d6a4f;
  letter-spacing: 0.5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 📱 موبايل */
@media (max-width: 768px) {
  .loader-spinner {
    width: 52px;
    height: 52px;
  }

  .loader-text {
    font-size: 14px;
  }
}
/* إخفاء اللوقو إلى أن ينتهي اللودينق */
body.loading #logoSection {
  visibility: hidden;
}
/* =========================
   PAGE LOADER
   ========================= */

#page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1b4332, #2d6a4f);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hide {
  opacity: 0;
  visibility: hidden;
}

/* اسم الشركة */
.loader-brand {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  text-align: center;

  background: linear-gradient(90deg, #ffffff, #b7e4c7, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: loaderShine 2.5s linear infinite;
}

/* حركة خفيفة */
@keyframes loaderShine {
  to {
    background-position: -200% center;
  }
}

/* موبايل */
@media (max-width: 768px) {
  .loader-brand {
    font-size: 20px;
  }
}
body.loading > *:not(#page-loader) {
  display: none;
}
/* ===== REQUEST FORM INPUT BORDERS ===== */

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  padding: 14px 16px;

  border-radius: 14px;
  border: 2px solid #d8f3dc; /* بوردر افتراضي */

  font-size: 15px;
  font-family: "Cairo", sans-serif;
  color: #1b4332;

  outline: none;
  background: #ffffff;

  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* عند التركيز (Focus) */
.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

/* Placeholder */
.request-form input::placeholder,
.request-form textarea::placeholder {
  color: #6c757d;
  font-size: 14px;
}
