/* Reset and Base Styles */
html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

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

body {
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
  color: #333;
  text-align: right;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: transparent;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  z-index: 1001;
}

.logo img {
  height: 50px;
  width: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  transition: all 0.3s ease;
}

.navbar.scrolled .menu-toggle span {
  background-color: #2c3e50;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-direction: row-reverse;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.navbar.scrolled .nav-links a {
  color: #2c3e50;
}

.nav-links a:hover {
  color: #003cb3;
}

/* Video Header */
.video-header {
  position: relative;
  height: 100vh;
  overflow: hidden;
  width: 100vw;
  left: 50%;
  transform: translateX(-49%);
}

#myVideo {
  position: absolute;
  left: 50%;
  top: 0;
  min-width: 100vw;
  min-height: 100vh;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  object-fit: cover;
  transform: translateX(-50%);
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 1;
  width: 90%;
  max-width: 800px;
}

.header-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.header-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #003cb3;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  background-color: #002080;
}

/* Projects Section */
.projects {
  padding: 5rem 5%;
  background-color: #f9f9f9;
}

.projects h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: white;

  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
  position: relative;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
  color: #003cb3;
}

.project-info p {
  color: #003cb3;
  font-weight: bold;
  margin-bottom: 1rem;
}

.project-link {
  display: inline-block;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.project-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  right: 0;
  background-color: #003cb3;
  transition: width 0.3s ease;
}

.project-card:hover .project-link {
  color: #003cb3;
}

.project-card:hover .project-link::after {
  width: 100%;
}

/* Project Details Section */
.project-details {
  background-color: white;
}

.project-details:nth-child(even) {
  background-color: #f9f9f9;
}

.project-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;

  width: 100vw;
  max-width: none;
  margin: 0;
  align-items: center;
}

.project-image {
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  position: relative;
  z-index: 0;
}

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

.project-content {
  text-align: right;
  padding: 6rem;
}

.project-content h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 700;
}

.project-content .price {
  font-size: 1.5rem;
  color: #003cb3;
  font-weight: 600;
  margin-bottom: 2rem;
}

.project-content .features {
  margin-bottom: 2rem;
}

.project-content .features h3,
.project-content .description h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-content .features ul {
  list-style: none;
  padding: 0;
}

.project-content .features li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #666;
  position: relative;
  padding-right: 1.5rem;
}

.project-content .features li::before {
  content: "•";
  color: #003cb3;
  position: absolute;
  right: 0;
  font-size: 1.5rem;
}

.project-content .description {
  margin-bottom: 2rem;
}

.project-content .description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

.project-content .cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #003cb3;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-content .cta-button:hover {
  transform: translateY(-3px);
  background-color: #003cb3;
}

/* Contact Form Section */
.contact {
  padding: 5rem 5%;
  background-color: #f8f8f8;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.form-group label {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: #666;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #003cb3;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
  top: -0.5rem;
  right: 0.5rem;
  font-size: 0.8rem;
  background-color: white;
  padding: 0 0.5rem;
  color: #003cb3;
}

button,
.submit-btn {
  padding: 1rem 2rem;
  background-color: #003cb3;
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover,
.submit-btn:hover {
  background-color: #002080;
}

/* Footer */
footer {
  background-color: #002166;
  color: white;
  padding: 4rem 5% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: right;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-section p {
  margin-bottom: 0.5rem;
}

.footer-section i {
  margin-left: 0.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: block;
  margin-bottom: 1.5rem;
  height: 55px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-about {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.8;
  text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: all 0.3s ease;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
  }

  .nav-links.active {
    right: 0;
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    color: #2c3e50;
    font-size: 1.3rem;
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .navbar.scrolled .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  .header-content h1 {
    font-size: 2.5rem;
  }

  .header-content p {
    font-size: 1.2rem;
  }

  .projects h2,
  .contact h2 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card,
.contact-form {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive Design for Project Details */
@media (max-width: 992px) {
  .project-detail-container {
    display: flex;
    flex-direction: column;
  }
  .project-image {
    order: 1;
    width: 100%;
    max-width: 100vw;
    margin-bottom: 1.5rem;
  }
  .project-content,
  .project-content.r-p {
    order: 2;
    width: 100%;
    padding: 20px;
  }

  .project-image {
    max-height: 400px;
  }

  .project-content {
    text-align: center;
    padding: 20px;
  }

  .project-content .features li {
    padding-right: 0;
    padding-left: 1.5rem;
  }

  .project-content .features li::before {
    right: auto;
    left: 0;
  }
  .video-header {
    transform: translateX(-50%);
  }
}

/* About Company Section */
.about-company {
  padding: 5rem 5%;
  background-color: #f9f9f9;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.about-content {
  text-align: right;
}

.about-content h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
}

.company-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.company-features li {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.company-features li i {
  color: #003cb3;
  font-size: 1.2rem;
}

.about-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #003cb3;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.about-cta:hover {
  transform: translateY(-3px);
  background-color: #003cb3;
}

/* Responsive Design for About Section */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-height: 400px;
  }

  .about-content {
    text-align: center;
  }

  .company-features li {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .header-content h1 {
    font-size: 2.5rem;
  }

  .header-content p {
    font-size: 1.1rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Social Media Buttons */
.social-media-buttons {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-btn {
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  max-width: 45px;
  max-height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.social-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.social-btn.facebook {
  background-color: #1877f2;
}

.social-btn.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-btn i {
  font-size: 20px;
}

.social-btn.contact {
  background-color: #003cb3;
}

.social-btn.contact:hover {
  background-color: #003cb3;
}

.social-btn.contact i {
  font-size: 20px;
}

/* Responsive styles for social media buttons */
@media (max-width: 768px) {
  .social-media-buttons {
    left: 10px;
  }

  .social-btn {
    width: 40px;
    height: 40px;
  }

  .social-btn i {
    font-size: 18px;
  }

  .footer-section p {
    padding-left: 50px;
    text-align: right;
  }

  .project-content .description {
    padding-left: 50px;
    text-align: right;
  }

  .about-content {
    padding-left: 50px;
    text-align: right;
  }

  .about-container h2 {
    padding-left: 50px !important;
    text-align: right !important;
  }

  .header-content {
    text-align: right;
    padding-left: 25px;
  }
}

/* Add black color for menu-toggle icon when menu is open */
.menu-toggle.active span {
  background-color: #222 !important;
}

/* Also ensure nav-links.active uses white background for clarity */
.nav-links.active {
  background: #fff !important;
}

/* Slick Slider Custom Arrows */
.slick-arrow {
  z-index: 10;
  width: 48px !important;
  height: 48px !important;
  background: none !important;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex !important;
  align-items: center;
  justify-content: center;
  top: 40% !important;
  transform: translateY(-50%) !important;
  color: #003cb3 !important;
  border: none;
  opacity: 1 !important;
}
.slick-prev,
.slick-next {
  font-size: 0;
  position: absolute;
}
.slick-prev {
  left: 16px;
  right: auto;
}
.slick-next {
  right: 16px;
  left: auto;
}
.slick-prev:before,
.slick-next:before {
  font-size: 60px !important;
  color: #fff !important;
  opacity: 0.8 !important;
  font-family: "slick";
}
.slick-prev:before {
  content: "\2190"; /* ← */
}
.slick-next:before {
  content: "\2192"; /* → */
}
@media (max-width: 768px) {
  .slick-arrow {
    width: 36px;
    height: 36px;
  }
  .slick-prev,
  .slick-next {
    top: 45%;
  }
}

[dir="rtl"] .slick-next {
  right: auto !important;
  left: 6% !important;
}
[dir="rtl"] .slick-prev {
  left: auto !important;
  right: 6% !important;
}

.project-slick .slick-slide {
  margin: 0 12px;
}
.project-slick {
  margin-left: -12px;
  margin-right: -12px;
}
