:root {
  --primary-color: #0b3b60;
  --secondary-color: #0088cc;
  --accent-color: #ff9f1c;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --whatsapp-color: #25d366;
  --whatsapp-hover: #1da851;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.logo-link .logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-color);
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--secondary-color);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 15px;
  padding-right: 15px;
  border-right: 2px solid #e2e8f0;
}

.nav-social a {
  font-size: 1.25rem;
  color: var(--primary-color);
  transition: transform 0.3s, color 0.3s;
}

.nav-social a:hover {
  transform: translateY(-2px);
}
.nav-social .social-whatsapp:hover { color: #25d366; }
.nav-social .social-fb:hover { color: #1877f2; }
.nav-social .social-insta:hover { color: #e4405f; }
.nav-social .social-yt:hover { color: #ff0000; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section / Slider */
.hero-slider-wrapper {
  padding-top: 80px;
  position: relative;
  width: 100%;
}

.hero-slide-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-slide-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #f8fafc;
  display: block;
}

.hero-slide-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 30px 20px;
  background: #f8fafc;
  width: 100%;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #38bdf8;
  color: #fff;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  background: #0284c7;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(11, 59, 96, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(11, 59, 96, 0.4);
}

.btn-whatsapp {
  background: var(--whatsapp-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px);
}

/* Sections */
.py-5 { padding: 5rem 0; }
.py-4 { padding: 3.5rem 0; }
.bg-white { background: var(--white); }
.bg-light { background: var(--bg-light); }
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

.section-header {
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.4rem;
  position: relative;
  display: inline-block;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* About Grid Layout */
.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.about-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-row.reverse {
  flex-direction: row-reverse;
}

.about-img, .about-text {
  flex: 1 1 320px;
}

.about-img img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s ease;
}

.about-img img:hover {
  transform: scale(1.02);
}

.about-text p {
  font-size: 1.25rem;
  line-height: 2;
  color: #334155;
}

/* Why Choose Us */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.why-card {
  background: white;
  padding: 35px 25px;
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #edf2f7;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  font-size: 3rem;
  margin-bottom: 18px;
  display: inline-block;
}

.why-card h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.service-card-top .service-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: rgba(0, 136, 204, 0.1);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Gallery Slider & Cards */
.gallery-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 290px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.gallery-media {
  position: relative;
  width: 100%;
  height: 450px;
  cursor: pointer;
  background: #000;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-media iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  transition: transform 0.3s;
}

.gallery-media:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.15);
}

.gallery-info {
  padding: 15px;
  text-align: center;
}

.gallery-info h4 {
  font-size: 1.05rem;
  margin-bottom: 5px;
}

/* Blog List & Article */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card-body h3 {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.blog-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.article-content {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  font-size: 1.15rem;
  line-height: 2;
  color: #334155;
}

.article-content h1 { font-size: 2.2rem; margin: 25px 0 15px; color: var(--primary-color); }
.article-content h2 { font-size: 1.7rem; margin: 30px 0 15px; color: var(--primary-color); }
.article-content h3 { font-size: 1.35rem; margin: 20px 0 10px; color: var(--secondary-color); }
.article-content p { margin-bottom: 20px; }
.article-content ul { margin: 15px 30px 25px 0; }
.article-content li { margin-bottom: 10px; }

/* Contact Section & Form */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.contact-info-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 136, 204, 0.1);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
}

/* Floating Action Buttons */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 62px;
  height: 62px;
  background-color: var(--whatsapp-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  animation: pulseWhatsapp 2s infinite;
  transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.12);
  color: #fff;
}

.floating-call {
  position: fixed;
  bottom: 105px;
  left: 32px;
  width: 56px;
  height: 56px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.floating-call:hover {
  transform: scale(1.12);
  color: #fff;
}

@keyframes pulseWhatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Video Popup */
.video-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.video-popup-overlay.active {
  display: flex;
}

.video-popup-box {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6);
}

.video-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.3rem;
  transition: background 0.3s;
}

.video-popup-close:hover {
  background: rgba(255, 255, 255, 0.5);
}

.video-popup-box video {
  width: 100%;
  display: block;
  max-height: 75vh;
  object-fit: contain;
  background-color: #000;
}

.video-popup-action {
  padding: 15px;
  display: flex;
  justify-content: center;
  background: #111;
}

.btn-whatsapp-popup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25d366;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s;
}

.btn-whatsapp-popup:hover {
  transform: scale(1.05);
  color: #fff;
}

/* Footer Section */
.footer-section {
  background: var(--primary-color);
  color: var(--white);
  padding: 70px 0 25px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.footer-col h3 {
  color: var(--accent-color);
  margin-bottom: 22px;
  font-size: 1.35rem;
}

.text-gray {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-links, .footer-contact {
  list-style: none;
  padding: 0;
}

.footer-links li, .footer-contact li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
}

.footer-links a {
  transition: color 0.3s;
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-contact li i {
  color: var(--accent-color);
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 50px;
  padding-top: 25px;
  text-align: center;
  font-size: 0.95rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 992px) {
  .mobile-toggle { display: block; }
  
  .nav-links {
    position: fixed;
    top: 75px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 75px);
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 25px;
    transition: right 0.4s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-social {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    width: 100%;
  }
}
