/* Design 3: Ultra-Premium Industrial Showcase */
:root {
    --primary: #c5a059; 
    --secondary: #002937;
    /* --secondary: #1a1a1a; */
    --accent: #f4f4f4;
    --bg-dark: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: rgba(0, 0, 0, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Almarai', sans-serif;
    --font-body: 'Almarai', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    input,button{
        font-family:'Almarai', sans-serif ;
    }
}

:root {
    --primary-color: #2b7fff;
    --white: #ffffff;
    --transition-speed: 1.2s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    /* background-color: var(--bg-dark); */
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

nav.scrolled {
    width: 100%;
    top: 0;
    border-radius: 0;
    padding: 15px 60px;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-content {
    text-align: center;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 30px;
}

.mobile-nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-tag {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 100px);
    line-height: 1;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: var(--transition);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
}

.btn-primary.outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-primary.outline:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Section Styling */
section {
    padding: 60px 0;
}

.section-tag {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.section-header {
    margin: 0;
    padding: 0;
}

.products {
    padding: 0;
}

.products .section-header{
  text-align: center;
  margin-bottom: 0;
}

.section-title {
    font-size: clamp(32px, 5vw, 35px);
    margin-bottom: 20px;
    color: var(--secondary);
}

.section-p {
    margin-bottom: 20px;
    color: var(--secondary);
}

.muted{
    color: var(--primary) !important; 
}
ul li{
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* Stats Section */
.stats {
    /* background: var(--secondary); */
    background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    color: var(--primary);
    font-size: 40px;
}

.stat-item p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-img img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.about-text p {
    margin-bottom: 20px;
}

.about-text p.muted {
    margin-bottom: 30px;
    color: var(--text-muted);
}

/*
  Newsletter Section
   ================================= */

.newsletter-section {
    background: linear-gradient(135deg, var(--bg-dark), var(--primary-color));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsletter-form input {
    height: 50px;
    border: none;
    border-radius: var(--border-radius);
    padding: 0 20px;
    font-size: 16px;
}

.newsletter-form button {
    height: 50px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.newsletter-form{
    display: flex;
    align-items: center;
    justify-content: center;
}
.newsletters h2{
    color: #fff;
    text-align: center;
}

.newsletter-form {
    max-width: 600px; 
    margin: 0 auto;  
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: 8px 0 0 8px; 
    border: 1px solid #ddd;
}

.newsletter-form .btn {
    height: 50px;
    border-radius: 0 8px 8px 0; 
    font-weight: bold;
    padding-left: 30px;
    padding-right: 30px;
}

.d-flex .form-control, .d-flex .btn {
    border-radius: 8px !important; 
}



/**/
/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Products Carousel */
.productsSlider {
    position: relative;
    /* padding: 40px 0; */
}

.productsSlider .swiper-slide {
    height: auto;
}

.product-grid-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    height: 100%;
}

.product-grid-item:hover {
    box-shadow: 0 15px 40px rgba(197, 160, 89, 0.15); /* Subtle primary color glow */
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(197, 160, 89, 0.3);
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-grid-item:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px 15px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    transition: var(--transition);
    color: rgb(0, 0, 199);
}

/* .product-grid-item:hover .product-info h3 {
    color: var(--primary);
} */

.product-info a  {
    text-decoration: none !important;
}

.product-info p {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
    color: rgb(0, 0, 199);

}

.product-info .btn-primary {
    align-self: flex-start;
    margin-top: auto;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

/* Products Carousel Navigation */
.products-next,
.products-prev {
    color: var(--primary);
    width: 50px;
    height: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-next:hover,
.products-prev:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
}

.products-next::after,
.products-prev::after {
    font-size: 18px;
}

.products-pagination {
    bottom: 0 !important;
}

.products-pagination .swiper-pagination-bullet {
    background: var(--primary);
    opacity: 0.5;
}

.products-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

/* Footer */
footer {
    padding: 20px 0;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
}

.container {
    width: 90%;
    margin: auto;
}

/* 🔥 التقسيم 5 - 2 - 5 */
.footer-grid {
    display: grid;
    grid-template-columns: 5fr 2fr 5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-title {
    margin-bottom: 20px;
    font-size: 18px;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    color: #ccc;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
}

.social-links a:hover {
    color: #00aced;
}

.footer-bottom {
    text-align: center;
    color: #aaa;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* 📱 Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    nav { 
        width: 100%; 
        top: 0; 
        border-radius: 0; 
        padding: 15px 25px; 
        background: rgba(10, 10, 10, 0.95);
    }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .stats { padding: 60px 0; }
    .stats-grid { grid-template-columns: 1fr; }
    
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-img { order: 2; }
    .about-text { order: 1; }
    
    .cta-card { padding: 40px 20px; }
}

/* Slider Start */

/* --- Creative Fullscreen Slider --- */
.creativeSlider {
    width: 100%;
    /* height: calc(100vh - 100px); */
    height:100vh ;
    min-height: 600px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.creativeSlider .swiper-slide {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.slide-fullscreen-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.1);
    transition: transform 6s ease;
}

.swiper-slide-active .slide-fullscreen-bg {
    transform: scale(1);
}

.slide-fullscreen-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to left, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(10, 10, 10, 0.1) 100%); */
}

.relative-z {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 100%;
}

.h-100 {
    height: 100%;
}

/* Glassmorphism Hero Card */
.glass-hero-card {
    /* background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px); */
    -webkit-backdrop-filter: blur(20px);
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    border-radius: 30px;
    padding: 60px 50px;
    max-width: 650px;
    /* box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); */
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .glass-hero-card {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(197, 160, 89, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-outline-play {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-outline-play i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-outline-play:hover {
    color: var(--primary);
}

.btn-outline-play:hover i {
    border-color: var(--primary);
    background: rgba(197, 160, 89, 0.1);
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    text-decoration: none;
    z-index: 9999;
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.floating-btn:hover {
    transform: translateY(-3px);
    opacity: 1;
}

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

.whatsapp-btn {
    left: 20px;
    right: auto;
    background: #25d366;
}

.back-to-top {
    right: 20px;
    left: auto;
    background: var(--primary);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 576px) {
    .floating-btn {
        width: 44px;
        height: 44px;
        bottom: 16px;
    }
    .whatsapp-btn {
        left: 16px;
    }
    .back-to-top {
        right: 16px;
    }
}

/* Custom Controls Layout */
.hero-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
}

.creativeSlider .swiper-pagination {
    position: relative;
    bottom: 0;
    width: auto;
    text-align: right;
    display: flex;
    gap: 10px;
}

.creativeSlider .swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.4s ease;
}

.creativeSlider .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 80px;
}

.hero-nav-btns {
    display: flex;
    gap: 15px;
}

.creativeSlider .swiper-button-next,
.creativeSlider .swiper-button-prev {
    position: relative;
    inset: auto;
    width: 60px;
    height: 60px;
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.creativeSlider .swiper-button-next:hover,
.creativeSlider .swiper-button-prev:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.creativeSlider .swiper-button-next::after,
.creativeSlider .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .creativeSlider {
        min-height: 600px;
    }
    .glass-hero-card {
        padding: 30px 20px;
        max-width: 100%;
        margin: 0 auto;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .hero-actions a {
        text-align: center;
        justify-content: center;
    }
    .hero-controls {
        flex-direction: row;
        justify-content: space-between;
        bottom: 20px;
        width: 90%;
    }
    .creativeSlider .swiper-button-next,
    .creativeSlider .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    .creativeSlider .swiper-button-next::after,
    .creativeSlider .swiper-button-prev::after {
        font-size: 14px;
    }
    .creativeSlider .swiper-pagination-bullet {
        width: 15px;
    }
    .creativeSlider .swiper-pagination-bullet-active {
        width: 30px;
    }
    .slide-fullscreen-bg::after {
        background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.6) 100%);
    }
}

/* إزالة المسافات الزائدة */
.products {
    padding: 40px 0 !important; /* تقليل مساحة القسم ككل */
}

.section-header {
    margin-bottom: 20px !important; /* المسافة بين العنوان والكاروسيل */
    text-align: center;
}

.section-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.swiper {
    margin-top: 0px !important;
}

.products .swiper {
    height: auto !important; 
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.products .swiper-slide {
    height: auto !important; 
}

/* Slider End */


/**Carousel Gallery**/
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 👈 4 صور */
  gap: 15px;
  padding: 20px;
}

/* الصور */
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* 🔍 Lightbox */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

/* 📱 Responsive */
@media (max-width: 992px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
/**//**/

/* Page Header */
.page-header {
    padding: 250px 0  100px;
    /* padding: 150px 0 80px; */
    text-align: center;
    /* background: linear-gradient(135deg, var(--secondary), var(--bg-dark)); */
    background-image: url('../images/bg.jpg');
    background-size: cover;
}

.page-title {
    font-size: clamp(40px, 6vw, 60px);
    color: var(--primary);
    margin-bottom: 20px;
}

.page-subtitle {
    color: var(--text-main);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* About Page */
.about-page {
    padding: 80px 0;
}

/* Values Section */
.values-section {
    padding: 30px 0;
    background: var(--bg-dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 20px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 28px;
    color: var(--bg-dark);
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.value-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Products Overview */
.products-overview {
    padding: 80px 0;
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
}

.product-item:hover {
    border-color: var(--primary);
    transform: translateX(-5px);
}

.product-item h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.product-item p {
    color: var(--text-muted);
    font-size: 14px;
}

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

/* Contact Page */
.contact-page {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    color: var(--primary);
    font-size: 32px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 22px;
    margin-bottom: 5px;
    color:#000
}

.info-item p {
    color: #000;
    font-size: 18px;
}

.contact-form {
    background: var(--glass);
    border: 2px solid var(--primary);
    padding: 40px;
    border-radius: 20px;
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #000;
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition);
    border-color: var(--primary);
    text-align: right;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

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

/* Video Page */
/* ========== VIDEO GALLERY & POPUP (FIXED) ========== */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.video-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.video-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}
.video-thumb img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.video-thumb:hover img {
  transform: scale(1.06);
}

/* زر التشغيل */
.video-thumb .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: #c9a84c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: all 0.3s;
  pointer-events: none; /* الكليك يتم على الصورة كلها */
  z-index: 2;
}
.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  transition: background 0.3s;
  z-index: 1;
}
.video-thumb:hover::after {
  background: rgba(0,0,0,0.35);
}
.video-thumb:hover .play-btn {
  background: #fff;
  color: #c9a84c;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 18px 20px;
  text-align: right;
}
.video-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 5px;
}
.video-info p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* ========== Video Popup Overlay ========== */
.video-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}
.video-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.video-popup-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.video-popup-overlay.active .video-popup-content {
  transform: scale(1);
}

.video-popup-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
  display: block;
}

/* زر الإغلاق */
.video-popup-close {
  position: absolute;
  top: -45px;
  left: 5px; /* لأن الموقع RTL، يكون على اليسار */
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
  line-height: 1;
}
.video-popup-close:hover {
  background: #e74c3c;
  color: #fff;
  transform: rotate(90deg);
}

/* استجابة الموبايل */
@media (max-width: 768px) {
  .video-popup-close {
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    font-size: 2rem;
    background: rgba(231, 76, 60, 0.8);
  }
  .video-popup-close:hover {
    transform: translateX(-50%) rotate(90deg);
  }
  .video-thumb img {
    height: 190px;
  }
  .video-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
@media (max-width: 500px) {
  .video-gallery {
    grid-template-columns: 1fr;
  }
}
/* End Video Page */


/* Products Page */
.products-page {
    padding: 80px 0;
}

.products-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.category-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.category-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-img img {
    transform: scale(1.1);
}

.category-content {
    padding: 30px;
}

.category-content h3 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 15px;
}

.category-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Product Detail Page */
.product-detail {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.product-gallery img:hover {
    transform: scale(1.05);
}

.product-gallery img:first-child {
    grid-column: span 2;
    height: 350px;
}

.product-detail-info h2 {
    color: var(--primary);
    font-size: 36px;
    margin-bottom: 20px;
}

.product-detail-info .description {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-features {
    margin-top: 30px;
}

.product-features h3 {
    color: var(--text-main);
    font-size: 20px;
    margin-bottom: 20px;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 15px;
    padding-right: 30px;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid,
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .product-gallery img:first-child {
        height: 250px;
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .values-grid,
    .products-list,
    .products-categories {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
}

/* Utility Classes */
.mb-50 { margin-bottom: 50px; }
.mt-30 { margin-top: 30px; }
.mr-15 { margin-right: 15px; }
.text-gold { color: #c5a059!important;font-size: 20px; }
.text-black { color: black; }
.btn-small { padding: 10px 25px; font-size: 12px; }
.map-iframe { border: 0; border-radius: 10px; }

/* Custom Gallery Boxes */
.custom-gallery-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.custom-gallery-boxes .img-box {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.custom-gallery-boxes img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}
.custom-gallery-boxes img:hover {
    transform: scale(1.05);
}

/* Lightbox Close */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1000;
}
.lightbox-close:hover {
    color: #ff4d4d;
}
