:root {
  --color1: #f0f0f0;
  --color2: #3d70b8;
  --color3: #630b00;
  --color4: #4e6300;
  --color5: #cbe371;
  --color6: #002a64;
  --color7: #e37e71;
}

body {
  font-family: "ubuntu", serif;
  background-color: #f7f7f7;
}

.firstContent {
  color: var(--color1);
  background-color: var(--color6);
  padding-inline: 7%;
  position: relative;
  overflow: hidden;
}

.firstContent .eye {
  border-radius: 70% 10%;
  border: 20px solid #022049;
  transform: rotate(20deg);
  outline: 3px solid #f7f7f7;
  box-shadow: 10px 2px 5px #3b3224, 5px 5px 10px #755c33,
    10px -10px 10px #4f3820, -10px -10px 8px #6c4f1c;
}

.firstContent h1 {
  font-size: 50px;
  font-weight: bolder;
}

.logoFontColor {
  background: linear-gradient(to right, #f6ad2c, #239cc9, #507ab4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #f7f7f7;
  background-clip: text;
  color: transparent;
}

.firstContent h2 {
  color: var(--color1);
  font-size: 60px;
  font-weight: bolder;
}

.logo {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
  object-fit: contain;
  width: 40%;
}
.logo2 {
  filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 1));
  object-fit: contain;
  width: 40%;
}

.dev {
  color: var(--color2);
  text-decoration: none;
}
.dev img {
  width: 30%;
}

.dev:hover {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.nav-item {
  white-space: nowrap;
  margin: 0% 5%;
  font-size: 1.5rem;
}
nav {
  z-index: 10;
  background-color: var(--color6);
}
.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler-icon {
  width: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgb(255 , 255 , 255)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar ul li a {
  color: var(--color1); /* لون عند التمرير */
}

.navbar ul li a:hover {
  color: #c8990d; /* لون عند التمرير */
}
.navbar-brand,
.navbar-brand:hover {
  font-size: 30px;
  font-weight: bolder;
  color: #fff;
  width: 40%;
}

.navbar-nav {
  font-weight: 700;
}

.slideshow {
  width: 100%;
  height: 600px;
  text-align: center;
  padding: 3%;
  position: relative;
  /* margin: 2%; */
}

.slide {
  position: absolute;
  left: 5%;
  width: 90%;
  border-radius: 10px;
  height: 500px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.footerContent {
  margin: 2%;
  padding: 5% 25%;
}
.logos
{
    margin: 2% 5%;
}
.footerContent h2,
.footerContent h3 {
  color: var(--color2);
}

.footerContent a {
  text-decoration: none;
  color: rgb(27, 27, 27);
}

.footerContent a:hover {
  color: var(--color2);
}
.footerContent ul {
  list-style-type: circle;
  padding-left: 20px;
}

.footerContent ul li::marker {
  color: var(--color2); /* Change to your desired color */
  font-size: 1.5em; /* Adjust size to make it appear bolder */
}

.footerHeader {
  height: 100px;
  background: var(--color1);
  justify-content: center;
  align-items: center;
  padding: 2% 1%;
}

.contact-us {
  color: var(--color2);
  padding: 3%;
  font-family: Arial, sans-serif;
  font-size: larger;
}

.contact-header h1,
.contact-header p {
  text-align: center;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-info {
  flex: 1;
  margin: 20px;
  color: white;
}

.info-item {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.info-item span {
  font-size: 24px;
  margin-right: 10px;
}

.social-media a {
  display: inline-block;
  margin: 10px 10px 0 0;
  text-decoration: none;
  color: white;
}

.social-media a:hover {
  color: var(--color2);
}

.contact-form {
  flex: 1;
  margin: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  background-color: var(--color2);
  color: var(--color1);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #070fff;
}

.button-64 {
  align-items: center;
  background-image: linear-gradient(144deg, #af40ff, #5b42f3 50%, #00ddeb);
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  box-sizing: border-box;
  color: #000000;
  display: flex;
  font-family: Phantomsans, sans-serif;
  font-size: 20px;
  justify-content: center;
  line-height: 1em;
  max-width: 100%;
  min-width: 140px;
  padding: 3px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
}

.button-64:active,
.button-64:hover {
  outline: 0;
}

.button-64 span {
  background-color: var(--color6);
  padding: 16px 24px;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  transition: 300ms;
  color: var(--color1);
}

.button-64:hover span {
  background: none;
}

/* CSS */
.button-52 {
  font-size: 16px;
  font-weight: 200;
  letter-spacing: 1px;
  padding: 13px 20px 13px;
  outline: 0;
  border: 1px solid black;
  cursor: pointer;
  position: relative;
  background-color: rgba(0, 0, 0, 0);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  text-decoration: none;
  color: var(--color1);
}

.button-52:after {
  content: "";
  background-color: var(--color7);
  width: 100%;
  z-index: -1;
  position: absolute;
  height: 100%;
  top: 7px;
  left: 7px;
  transition: 0.2s;
}

.button-52:hover:after {
  top: 0px;
  left: 0px;
}

.scroll-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 2%;
  padding: 3%;
  border-radius: 10px;
  color: var(--color1);
}

.card-container {
  flex: 0 0 auto;
  width: max-content; /* Adjust as needed */
  margin: 10px 2%;
}

.scroll-container .card {
  border: 3px solid var(--color6);
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #f7f7f795;
  color: var(--color1);
  -webkit-text-stroke: 1px black;
  position: relative;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Add smooth transitions */
}

.scroll-container .card-img-top {
  width: 100%;
  height: auto;
  /* opacity: 0; */
  transition: opacity 0.5s ease-in-out;
}
/* Parent container for images */
.image-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

/* Shared styles for both images */
.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: 100% 100%;
  transition: opacity 0.5s ease-in-out; /* Smooth fade effect */
}

/* Show the base image */
.fade-in {
  opacity: 1;
  z-index: 2;
}

/* Hide the image being replaced */
.fade-out {
  opacity: 0;
  z-index: 1;
}

.scroll-container .card:hover {
  box-shadow: 4px 4px 15px rgb(0, 0, 0); /* Stronger shadow for a lifted effect */
}
.scroll-container .card-body {
  padding: 10px;
  text-align: center;
  z-index: 2; /* Keep the text above the image */
}

.scroll-container .btn {
  margin-top: 10px;
}
.card-text {
  color: black;
  /* text-shadow: 2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000, 1px 1px #000,
    -1px -1px #000, 1px -1px #000, -1px 1px #000; */
}

.categoryWithoutPhoto {
  margin: 2%;
  padding: 3% 5%;
  border-radius: 10px;
  min-height: 600px;
  /* -webkit-text-stroke: 2px black; */
  font-weight: 700;
  overflow-x: hidden;
}

.productsInMainPage {
  /* background-color: var(--color4); */
  background-image: url("./img/Picsart_24-12-30_22-33-37-691.png") ,linear-gradient(to top, #f7f7f7, #3d70b8, #002a64 );
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.happyClientSection {
  background-image: linear-gradient(to bottom, #f7f7f7, #3d70b8, #002a64 );
}

.categoryWithoutDes {
  background: #0d076629;
  margin: 2%;
  padding: 5% 25% 5% 0;
  border-radius: 10px;
  min-height: 600px;
  align-items: center;
  justify-content: center;
}

.hidden-from-top {
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.7s ease-in-out;
}

.hidden-from-left {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.7s ease-in-out;
}

.hidden-from-right {
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.7s ease-in-out;
}

.hidden-from-bottom {
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.7s ease-in-out;
}

.animate {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.productsContainer {
  background: #0976bb;
  margin: 2%;
  padding: 3% 2%;
  border-radius: 10px;
  min-height: 600px;
}
.productImgs {
  border: var(--color1) solid 2px;
  border-radius: 10px;
  filter: drop-shadow(5px 10px 8px #000000);
  transition: transform 0.3s ease-in-out;
}

.productImgs:hover {
  transform: scale(1.05);
}
.rows {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.flex-row-reverse {
  flex-direction: row-reverse;
}

.portfolio-section {
  padding: 4%;
  text-align: center;
  background-color: #f7f7f7; /* Adjust background if needed */
}

.portfolio-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #333;
}

.portfolio-grid {
  display: flex;
  gap: 20px; /* Space between rows or columns */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  justify-content: center; /* Center the grid items horizontally */
  align-items: center; /* Center the grid items vertically if needed */
  padding: 20px; /* Optional padding for spacing around the grid */
}

.portfolio-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 10px 1%;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.portfolio-card-image img {
  width: 100%;
  height: 15rem;
  object-fit: fill;
}

.portfolio-card-content {
  padding: 15px 20px;
  position: relative;
}

.portfolio-card-content h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.portfolio-card-button {
  position: absolute;
  bottom: 15px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: var(--color7);
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.portfolio-card-button:hover {
  background-color: #e64050;
  transform: scale(1.1);
}

@media (max-width: 1000px) {
  .firstContent {
    padding-inline: 0;
  }
  .firstContent h1 {
    font-size: 50px;
  }
  .firstContent h2 {
    font-size: 40px;
  }

  .logo,
  .logo2 {
    width: 50%;
  }
  .navbar-brand {
    width: 70%;
  }
  .nav-item {
    font-size: 20px;
  }

  .categoryList {
    background-size: 120% 75%;
  }

  .button-52 {
    padding: 13px 50px 13px;
  }

  .button-64 {
    font-size: 24px;
    min-width: 196px;
  }

  .sideBar {
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    padding: 0;
    width: 94%;
    margin: 1% 3%;
  }

  .slideshow {
    height: 300px; /* Adjust height for tablets */
  }

  .slide {
    height: 250px;
  }

  .page {
    margin: 10% 5px;
    text-align: center;
  }

  .smallFontSize {
    width: 100%;
    margin: 0 auto;
    word-wrap: break-word;
    word-break: break-word;
    font-size: 1rem;
  }

  .dev img {
    width: 75%;
  }

  .pageInPhone {
    display: inline;
  }

  .none {
    display: none;
  }
  .pageContent {
    width: 94%;
  }
  .flip-card-front {
    width: 65%;
    height: 65%;
  }
  .footerHeader {
    margin-bottom: 14%;
  }
  .flip-card-back {
    width: 90%;
    height: 90%;
  }
  .categoryWithoutDes {
    padding: 5% 20%;
  }
}
