/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;  

}
p {
  font-family: 'Roboto', sans-serif;
}
/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #fff;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    FONT-SIZE: larger;
    padding-bottom: 0px;
}


header .logo {
  font-size: 24px;
  font-weight: bold;
  width: 150px;
}

header .logo img{
  width: 130px;
  height: 85px;
}

/* Navigation Menu */
header nav {
  position: relative;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 85px;
  transition: max-height 0.3s ease;
  font-size: larger;
}

header nav ul li {
  position: relative;
}

header nav ul li a {
    color: #e08a22;
    text-decoration: none;
    position: relative; /* إضافة موقع نسبي */
    transition: color 0.3s ease; /* إضافة انتقال لوني */
    FONT-WEIGHT: 700;

}

header nav ul li a::before {
    content: '';
    position: absolute;
    width: 0; /* يبدأ الخط من عرض 0 */
    height: 3px; /* سمك الخط */
    bottom: -5px;
    left: 0;
    background-color: #e08a22; /* لون الخط الأبيض */
    transition: width 0.3s ease; /* إضافة انتقال للعرض */
}
/*
header nav ul li a:hover {
 /*   color: #e08a22;  تغيير لون النص عند الهوفر 
}*/
header nav ul li a:hover::before {
    width: 100%; /* توسيع الخط ليملأ العرض بالكامل */
}

header nav ul li a#Brands {
    padding-bottom: 0;
}/* Dropdown Menu */
header nav ul li.products {
  position: relative;
}

header nav ul li:hover .products-slider {
  display: block;
}

/* Dropdown Menu Style */
header nav ul li .products-slider {
  display: none;
  position: absolute;
    top:100%;
  background-color: #fff;
 /*  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);*/
  width: max-content;
  padding: 30px;
  padding-bottom: 0px;

  z-index: 999;
  flex-direction: column;
  /*right: -8px;*/
}
.dropdown .products-slider .slider-track{
  display: block;
  padding: 0px;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.products-slider .bar-slide a {
  text-decoration: none;
  color: #e08a22;
  display: block;
  padding-bottom: 10px;
}

.products-slider .bar-slide a:hover {
  padding-bottom: 3px;
  display: block;
  padding: 5px 0;
}

/* Dropdown Menu Items Style */
.products-slider .bar-slide {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
  padding: 5px;
}

.products-slider .bar-slide a {
  /*color: #fff;*/
  display: block;
  padding-bottom: 10px;
  margin: auto;
  padding-top: 0px;
}

.products-slider .bar-slide a:hover {
  /*background-color: #e08a22;*/
  padding-bottom: 3px;
  display: block;
  padding: 5px 0;
}

/* Hamburger Menu for Mobile */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: fit-content;
  margin-right: 30px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #e08a22 ;
  transition: background-color 0.3s;
}

/* Mobile Styles */
@media (max-width: 768px) {
  header nav ul {
      flex-direction: column;
      position: absolute;
      top: 100%;
      right: -13PX;
      background-color: #ffffff;
      /*width: 87px;*/
      height: fit-content;
      max-height: 0;
      overflow: hidden;
  }

  header nav ul li {
      text-align: center;
      padding: 5px;
  }

  header nav ul li a {
      display: block;
      width: 100%;
  }

  .hamburger {
      display: flex;
  }

  nav.active ul {
      max-height: max-content;
      margin-top: 31px;
      overflow: unset;
      gap: 15px;
  }

  nav.active ul a:hover {
      background-color: rgba(0, 0, 0, 0.01);
  }

  header nav ul li a {
      margin-left: 0px;
      font-size: 20px;
      /*color: white;*/
  }
  
  header nav ul li p{
      font-size: 20px;
  }

  header nav ul li .products-slider {
      right: 79px;
      top: 5px;
      position: static;
      padding: 0;
      padding: 10px;
        PADDING-TOP: 20PX;
    
  }
}
/* Hero Section */
.hero-section {
  height: 100vh;
  background: url('/Junior/Img/home.png') no-repeat center center/cover;
  position: relative;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero-section {
      height: 100vh;
      background: url('/Junior/Img/home.png');
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 2s ease;
}

.hero-overlay h1 {
  font-size: 3.5rem;
  margin: 0;
}

.hero-overlay span {
  color: #e08a22;
}

.hero-overlay p {
  font-size: 1.5rem;
}

.hero-overlay .hero-btn {
  padding: 15px 30px;
  background: #e08a22;
  color: #fff;
  border: none;
  border-radius: 5px;
  margin-top: 20px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-overlay .hero-btn:hover {
  background: #e08a22;
  transform: scale(1.1);
}

/* Our Brands Section */
#our-brands {
  background: url('/Junior/Img/allx.png') no-repeat center center/cover;
}

.our-brands-section {
  background: url(/Junior/Img/Untitled-2.png) no-repeat center center / cover;
  padding: 50px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  overflow: hidden;
  height: 850px;
  align-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
}

.our-brands-section .brands-content {
  display: flex;
  width: 100%;
  max-width: 1200px;
  flex-direction: row-reverse;
  align-items: flex-end;
}

.our-brands-section .text {
  flex: 1;
  padding-right: 30px;
  color: #e08a22;
}

.our-brands-section .text h2 {
  font-size: 36px;
  margin-bottom:20px;
}

.our-brands-section .text p {
    font-size: 18px;
}

.our-brands-section .image {
    flex: 1;
    position: relative;
}

.our-brands-section .image img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    margin-left: 100px;
    visibility: hidden;
}

.our-brands-section .image img:hover {
    transform: scale(1.1);
}

.our-brands-section .brands-content {
    animation: fadeInUp 1s ease-out;
}

/* Our Brands Section - Mobile Styles */
@media (max-width: 767px) {
    #our-brands .brands-content {
        flex-direction: column;
        text-align: center;
    }

    #our-brands .text {
        margin-right: 0;
        margin-bottom: 20px;
        padding: 0;
    }

    #our-brands .image img {
        width: 100%;
       /* max-width: 300px;*/
        height: auto;
        margin: 0;
        visibility: visible;
    }
    .our-brands-section{
        height: 100%;
    }
}

/* Products Section */

/* --- 1. تصميم عام للصور في الشرائح (مكرر) --- */
.slide img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* إضافة ظل حول الصورة */
}

/* --- 2. تصميم قسم المنتجات --- */
#products {
  padding: 50px 0;
  background-color: #e67f00; /* خلفية برتقالية */
  text-align: center;
  overflow: hidden; /* منع تجاوز العناصر للخارج */
}

/* --- 3. تصميم حاوية الشرائح (Slider Container) --- */
.slider-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: visible; /* السماح للعناصر بالتجاوز */
  width: 30%; /* عرض الحاوية 30% من الحاوية الأب */
}

/* --- 4. تصميم الشرائح الفردية --- */
.slide {
  min-width: 100%; /* عرض كامل الشريحة */
  box-sizing: border-box;
  flex: 0 0 60%; /* حجم الشريحة النشطة 60% */
  max-width: 60%;
  transition: transform 0.8s ease, opacity 0.8s ease;
  position: relative;
  z-index: 1;
  opacity: 0.5; /* شفافية الشرائح غير النشطة */
  transform: scale(0.8); /* تصغير الشرائح غير النشطة */
}
.slide.active {
  opacity: 1;
transform: scale(1);
z-index: 10;
}
/* --- 5. تصميم أزرار التنقل (السابق/التالي) --- */
button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 20;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* --- 6. تصميم حاوية الشرائح الرئيسية (Slider) --- */
.slider {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible; /* السماح للعناصر بالتجاوز */
}

/* --- 7. تصميم مسار الشرائح الرئيسي (Slider Track) --- */
.slider-track-main {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform; /* تحسين الأداء */
}
/* Products Section - Mobile Styles */
@media (max-width: 768px) {
  .slider-container {
      max-width: 100%;
      padding: 0 20px;
      width: 100%;
  }

  .slide img {
      width: 100%;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
      opacity: 0;
      transform: translateY(30px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes slideIn {
  0% {
      opacity: 0;
      transform: translateY(50px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}


/* Social Media Section */
.section_wrapper {
    padding: 40px 0;
    background-color: #f4f4f4;
}

.wrap {
    text-align: center;
}

.column_attr {
    margin-bottom: 20px;
}

.column_attr h2 {
    font-size: 36px;
    font-weight: bold;
    color: #e08a22;
    margin-bottom: 30px;
}

.icon_bar {
    display: inline-block;
    width: 50px;
    height: 50px;
    margin: 10px;
    background-color: #0000005b;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s ease;
}

.icon_bar span.t,
.icon_bar span.b {
    display: block;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
}

@media (max-width: 768px) {
    .icon_bar span.t {
        line-height: 52px;
    }
}

.icon_bar i {
    font-size: 24px;
    color: white;
}

.icon_bar:hover {
    transform: scale(1.1);
}

.icon_bar_facebook:hover {
    background-color: #3b5998;
}

.icon_bar_youtube:hover {
    background-color: #ff0000;
}

.icon_bar_instagram:hover {
    background-color: #e4405f;
}

.icon_bar_linkedin:hover {
    background-color: #0077b5;
}

.column_attr img {
    max-width: 100%;
    width: 120px;
    margin-top: 20px;
}

/* Social Media Section - Mobile Styles */
@media (max-width: 768px) {
    .icon_bar {
        width: 45px;
        height: 45px;
    }

    .icon_bar i {
        font-size: 20px;
    }

    .column_attr h2 {
        font-size: 28px;
    }

    .column_attr img {
        width: 100px;
    }
}

/* Social Media Section - Specific Styles */
.social-media-section {
    position: relative;
    background: #fff;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    z-index: 10;
    margin-top: -10px;
    padding: 40px 0;
    border-radius: 0;
    animation: slideIn 1s ease-out;
}

.social-media-section h2 {
    font-size: 30px;
    color: #e08a22;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: bold;
    animation: fadeIn 1.5s ease-in-out;
}

.social-media-section .icon_bar {
    display: inline-block;
    margin: 10px;
    transition: all 0.3s ease;
}

.social-media-section .icon_bar:hover {
    transform: scale(1.2);
    transition: all 0.3s ease;
}

/* Logo Section */
img.scale-with-grid {
    width: 400px;
}

/* Social Media Section - Mobile Styles */
@media (max-width: 768px) {
    img.scale-with-grid {
        width: 200px;
    }

    .social-media-section h2 {
        font-size: 20px;
    }
}

/* Footer */
footer {
    background-color: #e08a22;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: 0;
}

#rights {background-color: #333;
  color: #fff;
  padding: 5px;
  text-align: center;
}

