/* قسم الهيرو */
/* تأثير احترافي - Ken Burns مع Parallax */
.hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

/* السلايدر */
.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slider span {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 18s infinite;
}

.hero-slider span:nth-child(1) {
    animation-delay: 0s;
}
.hero-slider span:nth-child(2) {
    animation-delay: 6s;
}
.hero-slider span:nth-child(3) {
    animation-delay: 12s;
}

/* الحركة */
@keyframes slideShow {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    30% { opacity: 1; transform: scale(1.1); }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

/* overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(241, 241, 241, 0.45);
    z-index: 2;
}

/* المحتوى */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* اللوجو */
.hero-logo {
    width: 400px;
    max-width: 80%;
}

/* زر */
.btn {
    padding: 14px 30px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
}

/* المنتجات المميزة */
/* المنتجات المميزة */
.product-card {
  position: relative;
  height: 360px;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}

/* Flip container */
.flip-card {
  perspective: 1000px;
}

/* Inner flip */
.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

/* Flip front & back */
.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 22px;
  overflow: hidden;
}

/* Back side */
.flip-back {
  transform: rotateY(180deg);
}

/* Flip on click */
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

/* الصورة */
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Overlay */
.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,23,42,0.9),
    rgba(15,23,42,0.4),
    transparent
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 35px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.5s ease;
}

/* Hover effects */
.product-card:hover img {
  transform: scale(1.12);
}

.product-card:hover .product-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Text */
.product-overlay h3 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 10px;
}

.product-overlay p {
  color: #e5e7eb;
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* Button */
.btn-blue {
  align-self: flex-start;
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn-blue:hover {
  transform: scale(1.08);
}


/* قسم المميزات */
.why-us {
    background-color: var(--light-gray);
    padding: 80px 0 60px 0; /* 80px أعلى، 60px أسفل */
   }
   .featured-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.product-card {
    position: relative;
    height: 320px;          /* كانت كبيرة */
    border-radius: 20px;
    overflow: hidden;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15,23,42,0.85),
        rgba(15,23,42,0.3),
        transparent
    );
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 20px; /* مسافة إضافية تحت المميزات */
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--primary-white);
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.feature h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* قسم الفيديو */
.video-section {
    background: linear-gradient(to right, var(--primary-white) 50%, var(--light-gray) 50%);
    padding: 60px 0; /* إضافة padding للقسم */
}

.video-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.video-info h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.video-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* صندوق الفيديو */
.video-box {
    position: relative;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* الفيديو نفسه */
.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* تأثير Hover خفيف */
.video-box:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}
.video-box::after {
    content: "\f144";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255,255,255,0.85);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-box:hover::after {
    opacity: 0;
}

/* الأيقونات الاجتماعية */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-white);
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

/* التصميم المتجاوب */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .featured-products,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* سلايدر المنتجات */
.products-slider {
    overflow: hidden;
    position: relative;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: var(--primary-white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover:not(:disabled),
.slider-next:hover:not(:disabled) {
    background-color: var(--primary-blue);
    transform: scale(1.1);
}

.slider-prev:disabled,
.slider-next:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.5;
}