@font-face {
  font-family: "montserratthin_italic";
  src: url("../fonts/montserrat-italic-variablefont_wght-webfont.woff")
      format("woff2"),
    url("../fonts/montserrat-italic-variablefont_wght-webfont.woff")
      format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "montserratthin";
  src: url("../fonts/montserrat-italic-variablefont_wght-webfont.woff2")
      format("woff2"),
    url("../fonts/montserrat-italic-variablefont_wght-webfont.woff2")
      format("woff");
  font-weight: normal;
  font-style: normal;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
a {
  position: relative;
  display: inline-block;
  font-size: 2em;
  color: #e5e4e2;
  font-weight: 800;
  text-decoration: none;
  overflow: hidden;
  transition: clip-path 500ms ease-in-out;
  &:hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  &::before {
    position: absolute;
    content: attr(data-content);
    color: #000000;
    text-decoration: none;
    clip-path: polygon(0 0, 0 0, 0% 100%, 0 100%);
    transition: clip-path 500ms ease-in-out;
  }
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "montserratthin";
}
/* -------------------------------------------------------------------------- */
/*                                 utils class                                */
/* -------------------------------------------------------------------------- */
.continer {
  display: grid;
  justify-content: center;
  align-content: center;
}

.border-red {
  border: 4px solid rgba(236, 34, 39, 0.5);
}
.border-green {
  border: 4px solid rgba(61, 180, 90, 0.5);
}
.border-white {
  border: 4px solid rgba(255, 255, 255, 0.5);
}
.italy-flag-vertical {
  width: 100%;
  height: 5vh;
  background-image: url("https://upload.wikimedia.org/wikipedia/commons/thumb/0/03/Flag_of_Italy.svg/1280px-Flag_of_Italy.svg.png");
  background-size: cover;
  background-position: center;
}
.text-center {
  text-align: center;
  margin-bottom: 3vh;
}
/* -------------------------------------------------------------------------- */
/*                                hero section                                */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 110vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* This creates the parallax effect */
  transition: background-image 1s ease-in-out;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0.7;
}

.hero .content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero .logo {
  max-width: 35vw;
}

/* -------------------------------------------------------------------------- */
/*                               navigation bar                               */
/* -------------------------------------------------------------------------- */
nav {
  position: fixed;
  height: 10vh;
  top: 0;
  width: 100%;
  /* background: linear-gradient(
    90deg,
    rgba(0, 128, 0, 0.5),
    rgba(255, 255, 255, 0.5),
    rgba(255, 0, 0, 0.5)
  ); */
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  transition: color 0.3s;
}

nav a:hover {
  color: #ddd;
  border-bottom: 2px solid #fff;
}
/* -------------------------------------------------------------------------- */
/*                                  about us                                  */
/* -------------------------------------------------------------------------- */
.about-section {
  width: 100%;
  height: 100vh;
  background-color: #ff6b00;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: start;
  overflow: hidden; /* Prevent overflow from showing */
}

.about-section .about-content {
  width: 40vw;
  margin: 0 5vw;
  color: rgb(255, 255, 255);
  backdrop-filter: blur(5px);

  padding: 20px;
  border-radius: 10px;
  position: relative;
  opacity: 0; /* Start hidden */
  transform: translateX(-50vw); /* Start off-screen left */
  z-index: 2; /* Ensure content is above image */
}
.about-section h1,
h2 {
  margin: 2vh 0;
}
.about-section .about-image {
  position: absolute;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("../images/Lion.png");
  background-position: right;
  background-size: auto 100%;
  background-repeat: no-repeat;
  transform: translateX(50vw); /* Start off-screen right */
  z-index: 1; /* Ensure image is below content */
}

.about-section .about-content h1 {
  color: #fff;
}
/* -------------------------------------------------------------------------- */
/*                                 ourproducts                                */
/* -------------------------------------------------------------------------- */
.products-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  justify-content: space-between;
  padding: 20px;
  height: 90vh;
  margin-bottom: 5vw;
}

.products-left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-content: flex-start;
}

.product-cup {
  opacity: 1;
  transform: translateX(-20vw); /* تبدأ المنتجات خارج الشاشة من الجهة اليسرى */
}
.z-index {
  z-index: 10000000;
}
.prsmimg {
  width: 15vw;
  margin: -1vw 0;
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes floattwo {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}
.product-cup.floating {
  animation: float 3s ease-in-out infinite;
}
.product-cup.floatingtwo {
  animation: floattwo 5s ease-in-out infinite;
}
/* -------------------------------------------------------------------------- */
/*                         omnya brand text animation                         */
/* -------------------------------------------------------------------------- */
.content-moving {
  font-size: 6vw;
  color: white;
  background-color: #ff6b00;
  height: 20vh;
  overflow: hidden;
  padding: 0 10vw;
}

.content-list-moving {
  position: relative;
  width: 30%;
  padding: 5%;
  top: 0;
  left: 50%;
  animation-name: scroll;
  animation-duration: 8s;
  animation-delay: 2s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.content-item-moving {
  margin-bottom: 1rem;
}

@keyframes scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(0, -25%, 0);
  }

  50% {
    transform: translate3d(0, -50%, 0);
  }

  75% {
    transform: translate3d(0, -75%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
/* -------------------------------------------------------------------------- */
/*                                 Our Brandes                                */
/* -------------------------------------------------------------------------- */

.oreBreand {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #222222;
  overflow: hidden;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.oreBreand::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to right,
    green 33.33%,
    white 33.33%,
    white 66.66%,
    red 66.66%
  );
  opacity: 0.5;
  transition: width 1s;
  z-index: 1;
}

.oreBreand.scrolled::before {
  width: 10vw;
}

.content-flag {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s;
  max-width: 80%;
}

.oreBreand.scrolled .content-flag {
  opacity: 1;
}

.oreBreand h1 {
  font-size: 3em;
  margin: 0;
}

.oreBreand p {
  font-size: 1.2em;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/*                                   footer                                   */
/* -------------------------------------------------------------------------- */

#cc {
  color: #999;
  text-transform: uppercase;
  font-size: 36px;
  font-weight: bold;
  width: 100%;
  height: 50vh;
  bottom: 45%;
  background-color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
}

#flip {
  height: 50px;
  overflow: hidden;
}

#flip > div > div {
  color: #fff;
  padding: 4px 12px;
  height: 45px;
  margin-bottom: 45px;
  display: inline-block;
}

#flip div:first-child {
  animation: show 5s linear infinite;
}

#flip div div {
  background: #3db45a;
}
#flip div:first-child div {
  background: #ff6b00;
}
#flip div:last-child div {
  background: #dc143c;
}

@keyframes show {
  0% {
    margin-top: -100px;
  }
  5% {
    margin-top: -180px;
  }
  33% {
    margin-top: -180px;
  }
  38% {
    margin-top: -90px;
  }
  66% {
    margin-top: -90px;
  }
  71% {
    margin-top: 0px;
  }
  99.99% {
    margin-top: 0px;
  }
  100% {
    margin-top: -100px;
  }
}

.flip p {
  position: fixed;
  width: 100%;
  bottom: 30px;
  font-size: 12px;
  color: #999;
  margin-top: 200px;
  padding: 3vh 1vw;
}
/* -------------------------------------------------------------------------- */
/*                                 brandsLogo                                 */
/* -------------------------------------------------------------------------- */
.brandsLogo {
  background-color: #121212;
  display: flex;
  justify-content: center;
  align-content: center;
  padding: 5vh 0;
  overflow: hidden;
  color: #fff;
}
.logoGalary {
  width: 80%;
  height: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-content: center;
  align-content: center;
}
.zby {
  width: 100%;
  height: 100%;
  background-color: #fff;
}
.logo-img-omnyat {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
    transform 2.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-img-omnyat.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------- */
/*                                 media query                                */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero .logo {
    max-width: 70%; /* تقليل حجم الشعار للشاشات الصغيرة */
  }
  .about-section .about-content {
    width: 90%;
    max-width: 100%; /* Full width on smaller screens */
    margin: 0 auto; /* Center content horizontally */
  }
  .products-container {
    padding: 10px; /* Reduce padding for smaller screens */
  }

  .products-list {
    flex-direction: column; /* Stack products vertically on smaller screens */
    align-items: center; /* Center items horizontally */
  }

  .product-cup {
    transform: none; /* Reset transform for centering */
    margin-bottom: 10px; /* Adjust spacing between products */
  }
  .prsmimg {
    width: 25vw;
    margin: -1vw 0;
  }
  .content-moving {
    height: 7vh;
    padding: 1vh;
  }
  .logoGalary {
    width: 90%; /* Adjust width for smaller screens */
    grid-template-columns: 1fr; /* Single column layout on smaller screens */
  }
  .about-section .about-content {
    color: #000000;
    font-weight: 15000;
    backdrop-filter: blur(0px);
    background-color: #fff;
  }
  .about-section .about-content h1 {
    color: #000000;
  }
  .oreBreand {
    padding: 5vh 5vw;
    font-size: 0.8em;
  }
  #products {
    height: 60vh;
  }
}
